Duplicate pulgin types created by PluginRegistry.exportimport._updatePluginRegistry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope PAS |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I recently wired together the GenericSetup handlers from PAS in an
extension profile for another product. This way I can support fully
declaritive import/export steps for setting up a PAS user folder
within a CMF GS profile using the PAS subdirectory. As such we can
avoid the declaritive abuse of GS used in borg, membrane, remember,
etc..
It all worked great with a minimum of code in the other product with
one exception. If a plugin type and active plugins for that type have
been configured previously (whether by a GS profile or not) then
registering the plugin type again with a new list of active plugins
will result in duplicates in registry.
acl_users.
functionality but results in duplicates in the PAS ZMI.
Attached is a small patch that avoids this rather simply. I'd love to
see it merged so I don't have to maintain changed copies in my own
product to have extension profiles that modify a PAS UF configuration.
Status: Pending => Resolved
Thanks for the patch. Merged with a test to the trunk:
http:// svn.zope. org/PluginRegis try/trunk/ ?rev=74714& view=rev
and will be in the upcoming 1.1.2 release.