Skip to content

Commit

Permalink
Make Actions better compatible with plone.supermodel/autoform directi…
Browse files Browse the repository at this point in the history
…ves.
  • Loading branch information
thet committed Jun 5, 2020
1 parent 23a11cc commit ea64ffc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions news/225.bugfix
@@ -0,0 +1 @@
Make Actions better compatible with plone.supermodel/autoform directives.
4 changes: 2 additions & 2 deletions src/collective/easyform/browser/actions.py
Expand Up @@ -244,8 +244,8 @@ class EasyFormActionsListingPage(SchemaListingPage):


class ActionAddForm(FieldAddForm):

fields = field.Fields(INewAction)
schema = INewAction
fields = field.Fields() # let fields be updated by AutoExtensibleForm.updateFields
label = _("Add new action")


Expand Down
3 changes: 1 addition & 2 deletions src/collective/easyform/interfaces/actions.py
Expand Up @@ -9,7 +9,6 @@
from plone.schemaeditor.interfaces import ISchemaContext
from plone.supermodel.directives import fieldset
from plone.supermodel.model import Schema
from zope.interface import Interface

import z3c.form.interfaces
import zope.interface
Expand Down Expand Up @@ -37,7 +36,7 @@ def isValidFieldName(value):
return True


class INewAction(Interface):
class INewAction(Schema):

title = zope.schema.TextLine(title=__(u"Title"), required=True)

Expand Down

0 comments on commit ea64ffc

Please sign in to comment.