Skip to content
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

ValueError: ('Duplicate name', 'my.behavior') #14

Open
iham opened this issue Mar 15, 2017 · 0 comments
Open

ValueError: ('Duplicate name', 'my.behavior') #14

iham opened this issue Mar 15, 2017 · 0 comments

Comments

@iham
Copy link
Member

iham commented Mar 15, 2017

created a package and registered a behavior "my.behavior".
works fine so far.

create another package (my.behavior.sub) and override the behavior.
(just needed to change languageindepent on one field of the behavior)

fire up zope: all is fine.
create a plone site and install additionally the my.behavior.sub
still - all is fine

but now go to control panel -> dexterity types -> choose a type and click on the "behaviors" tab:

ERROR Zope.SiteErrorLog 1489568742.040.915683235822 http://localhost:8050/Plone/dexterity-types/News%20Item/@@behaviors
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.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 47, in update
  Module z3c.form.form, line 226, in update
  Module plone.z3cform.patch, line 20, in BaseForm_update
  Module z3c.form.form, line 154, in update
  Module z3c.form.form, line 136, in updateWidgets
  Module z3c.form.field, line 227, in update
  Module plone.app.dexterity.browser.behaviors, line 115, in fields
  Module z3c.form.field, line 136, in __init__
ValueError: ('Duplicate name', 'my.behavior')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant