importToolset fails when trying to create a tool which subclasses ImmutableId with a non-default id
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Zope CMF buildout |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
Revision 115137 updated the importToolset method to no longer ignore errors when calling _setId on the just-created tool. This causes a problem when the following three conditions are true:
- the tool being created has an __init__ method with no required parameters (i.e. has a default id)
- the tool extends Products.
- the XML being imported specifies a different id than the default for the tool
This is currently preventing use of the most recent GenericSetup release with Plone 4, since the package CMFEditions relies on being able to create a Products.
| Changed in zope-cmf: | |
| status: | New → In Progress |
| status: | In Progress → New |
| Changed in zope-cmf: | |
| status: | New → Fix Committed |
| status: | Fix Committed → Invalid |

This smells like a bug in CMFEditions, not in GenericSetup.
- How does CMFEditions set up a tool with the correct id if _setId fails?
- Why contains toolset.xml two tools with the same id (portal_ uidhandler) ? svn.plone. org/svn/ collective/ Products. CMFEditions/ trunk/Products/ CMFEditions/ profiles/ default/ toolset. xml
http://