Skip to content

ProtectedEmail and ProtectedTextLine show up as addable fields #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pbauer opened this issue Oct 8, 2017 · 2 comments
Closed

ProtectedEmail and ProtectedTextLine show up as addable fields #94

pbauer opened this issue Oct 8, 2017 · 2 comments

Comments

@pbauer
Copy link
Member

pbauer commented Oct 8, 2017

Using Plone 5.1rc1 two fields from plone.app.users show up as addable that throw errors:

ProtectedTextLine

2017-10-08 13:47:31 ERROR Zope.SiteErrorLog 1507463251.980.830447374515 http://localhost:8080/Plone/ein-formualr/@@fields/@@add-field
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 47, in update
  Module plone.z3cform.fieldsets.extensible, line 65, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 145, in update
  Module plone.app.z3cform.csrf, line 22, in execute
  Module z3c.form.action, line 98, in execute
  Module z3c.form.button, line 315, in __call__
  Module z3c.form.button, line 170, in __call__
  Module z3c.form.form, line 257, in handleAdd
  Module z3c.form.form, line 265, in createAndAdd
  Module plone.schemaeditor.browser.schema.add_field, line 88, in add
  Module zope.event, line 31, in notify
  Module zope.component.event, line 27, in dispatch
  Module zope.component._api, line 139, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module zope.component.event, line 36, in objectEventNotify
  Module zope.component._api, line 139, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module collective.easyform.subscribers, line 7, in updateFields
  Module collective.easyform.api, line 116, in set_fields
  Module plone.supermodel, line 36, in serializeSchema
  Module plone.supermodel, line 40, in serializeModel
  Module plone.supermodel.serializer, line 103, in serialize
  Module plone.supermodel.serializer, line 69, in writeField
ValueError: Field type plone.app.users.schema.ProtectedTextLine specified for field foo is not supported

ProtectedEmail:

2017-10-08 13:52:28 ERROR Zope.SiteErrorLog 1507463548.230.930948147693 http://localhost:8080/Plone/ein-formualr/@@fields/@@add-field
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 47, in update
  Module plone.z3cform.fieldsets.extensible, line 65, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 145, in update
  Module plone.app.z3cform.csrf, line 22, in execute
  Module z3c.form.action, line 98, in execute
  Module z3c.form.button, line 315, in __call__
  Module z3c.form.button, line 170, in __call__
  Module z3c.form.form, line 257, in handleAdd
  Module z3c.form.form, line 265, in createAndAdd
  Module plone.schemaeditor.browser.schema.add_field, line 88, in add
  Module zope.event, line 31, in notify
  Module zope.component.event, line 27, in dispatch
  Module zope.component._api, line 139, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module zope.component.event, line 36, in objectEventNotify
  Module zope.component._api, line 139, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module collective.easyform.subscribers, line 7, in updateFields
  Module collective.easyform.api, line 116, in set_fields
  Module plone.supermodel, line 36, in serializeSchema
  Module plone.supermodel, line 40, in serializeModel
  Module plone.supermodel.serializer, line 103, in serialize
  Module plone.supermodel.serializer, line 69, in writeField
ValueError: Field type plone.app.users.schema.ProtectedEmail specified for field foo is not supported
@pbauer pbauer changed the title ProtectedEmail and ProtectedTextLine show up as fields to add ProtectedEmail and ProtectedTextLine show up as addablee fields Oct 8, 2017
@pbauer pbauer changed the title ProtectedEmail and ProtectedTextLine show up as addablee fields ProtectedEmail and ProtectedTextLine show up as addable fields Oct 8, 2017
@tomgross
Copy link
Member

tomgross commented Oct 8, 2017

These fields can be hidden by changing the easyform.allowedFields registry entry

  • plone.app.users.schema.ProtectedEmail &
  • plone.app.users.schema.ProtectedTextLine

@tomgross
Copy link
Member

I guess this OK now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants