SVN: PluginRegistry/trunk/ Add support for GenericSetup import.

Tres Seaver <[email protected]> Fri, 17 Feb 2006 17:12:32 -0500 (EST)
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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>
 

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS