[Zope-CVS] SVN: PluginRegistry/trunk/ Add support for GenericSetup
import.
Tres Seaver
tseaver at palladion.com
Fri Feb 17 17:12:32 EST 2006
Log message for revision 41652:
Add support for GenericSetup import.
Changed:
U PluginRegistry/trunk/PluginRegistry.py
U PluginRegistry/trunk/configure.zcml
-=-
Modified: PluginRegistry/trunk/PluginRegistry.py
===================================================================
--- PluginRegistry/trunk/PluginRegistry.py 2006-02-17 22:10:23 UTC (rev 41651)
+++ PluginRegistry/trunk/PluginRegistry.py 2006-02-17 22:12:31 UTC (rev 41652)
@@ -423,3 +423,8 @@
return found[ 0 ]
InitializeClass( PluginRegistry )
+
+def emptyPluginRegistry( ignored ):
+ """ Return empty registry, for filling from setup profile.
+ """
+ return PluginRegistry(())
Modified: PluginRegistry/trunk/configure.zcml
===================================================================
--- PluginRegistry/trunk/configure.zcml 2006-02-17 22:10:23 UTC (rev 41651)
+++ PluginRegistry/trunk/configure.zcml 2006-02-17 22:12:31 UTC (rev 41652)
@@ -8,5 +8,11 @@
for=".interfaces.IPluginRegistry"
/>
+ <adapter
+ factory=".exportimport.PluginRegistryFileExportImportAdapter"
+ provides="Products.GenericSetup.interfaces.IFilesystemImporter"
+ for=".interfaces.IPluginRegistry"
+ />
+
</configure>
More information about the Zope-CVS
mailing list