[CMF-checkins] CVS: CMF/CMFSetup - tool.py:1.12

Tres Seaver tseaver at zope.com
Sat May 29 22:13:07 EDT 2004


Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv31004

Modified Files:
	tool.py 
Log Message:


  - Move "primary" objects up, and "helpers" down, in the module.


=== CMF/CMFSetup/tool.py 1.11 => 1.12 ===
--- CMF/CMFSetup/tool.py:1.11	Tue May 25 09:18:21 2004
+++ CMF/CMFSetup/tool.py	Sat May 29 22:13:07 2004
@@ -23,6 +23,23 @@
 
 from utils import _wwwdir
 
+
+def exportStepRegistries( context ):
+
+    """ Built-in handler for exporting import / export step registries.
+    """
+    site = context.getSite()
+    tool = getToolByName( site, 'portal_setup' )
+
+    import_steps_xml = tool.getImportStepRegistry().generateXML()
+    context.writeDataFile( 'import_steps.xml', import_steps_xml, 'text/xml' )
+
+    export_steps_xml = tool.getExportStepRegistry().generateXML()
+    context.writeDataFile( 'export_steps.xml', export_steps_xml, 'text/xml' )
+
+    return 'Step registries exported'
+
+
 class SetupTool( UniqueObject, Folder ):
 
     """ Profile-based site configuration manager.
@@ -465,19 +482,3 @@
                }
 
 InitializeClass( SetupTool )
-
-
-def exportStepRegistries( context ):
-
-    """ Built-in handler for exporting import / export step registries.
-    """
-    site = context.getSite()
-    tool = getToolByName( site, 'portal_setup' )
-
-    import_steps_xml = tool.getImportStepRegistry().generateXML()
-    context.writeDataFile( 'import_steps.xml', import_steps_xml, 'text/xml' )
-
-    export_steps_xml = tool.getExportStepRegistry().generateXML()
-    context.writeDataFile( 'export_steps.xml', export_steps_xml, 'text/xml' )
-
-    return 'Step registries exported'




More information about the CMF-checkins mailing list