collective / collective.polls

A content type, workflow, and portlet for conducting online polls, for anonymous and logged-in users
11 stars 12 forks source link

Can't add a portlet under Plone 5 #106

Closed hvelarde closed 7 years ago

hvelarde commented 8 years ago

Plone 5.0.6 and collective.polls 1.9b1 (master branch right now).

when trying to add a Poll portlet, the following exception is raised:

2016-09-29 16:58:08 ERROR Zope.SiteErrorLog 1475179088.770.200961041976 http://localhost:8080/Plone5/front-page/++contextportlets++plone.rightcolumn/+/collective.polls.VotePortlet
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.app.portlets.browser.formhelper, line 59, in __call__
  Module z3c.form.form, line 233, in __call__
  Module plone.z3cform.fieldsets.extensible, line 58, in update
  Module plone.autoform.form, line 33, in updateFields
  Module plone.autoform.base, line 54, in updateFieldsFromSchemata
  Module plone.autoform.form, line 22, in schema
NotImplementedError: The class deriving from AutoExtensibleForm must have a 'schema' property

Maybe related with the dependency on five.grok.

hvelarde commented 7 years ago

see: http://ale-rt.github.io/posts/how-to-port-plone4-portlets-to-plone5.html