Object creation breaks at random when a title for the "title" field is created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Low
|
Unassigned |
Bug Description
I created a FieldIndex for the 'title' field in the zope zmi.
After that, when creating some Archetype objects that inherit straight from BaseContent, I'd get an exception. If the "title" field would be hidden it would work.
Debugging it, I found out that the widget object itself is called without parameters in the UnIndex.
It happens that the "__call__" method for the StringWidget holding title expects 3 parameters (instead of one), once the title field is indexed. (I could not find why, not even can imagine what a call to a widget object should return if it worked at all).
This call is already inside a try-except clause that passes on "AttributeError".
The exception can be bypassed it the same try clause also passes "TypeError". I did this, and my app is working.
Therefore I am proposing this fix fo zope.
Changed in zope2: | |
importance: | Medium → Low |
status: | New → Triaged |
tags: |
added: bugday removed: bug+solution zope |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
How exactly is this a Zope problem?
It seems to me that if Plone has a catalog index for a field 'title' that isn't a simple attribute or a callable with no arguments, then it's Plone's fault.