Duplicate pulgin types created by PluginRegistry.exportimport._updatePluginRegistry

Bug #161280 reported by Ross Patterson
2
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._plugin_types (as in
acl_users.plugins._plugin_types). This doesn't actually break any
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.

Revision history for this message
Ross Patterson (rossp) wrote :
Revision history for this message
Tres Seaver (tseaver) wrote :

Status: Pending => Resolved

Thanks for the patch. Merged with a test to the trunk:

  http://svn.zope.org/PluginRegistry/trunk/?rev=74714&view=rev

and will be in the upcoming 1.1.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.