[Zope-CVS] CVS: Products/FSDump - CHANGES.txt:1.12 Dumper.py:1.13 version.txt:1.8

Tres Seaver tseaver at zope.com
Fri Apr 29 09:52:51 EDT 2005


Update of /cvs-repository/Products/FSDump
In directory cvs.zope.org:/tmp/cvs-serv15369

Modified Files:
	CHANGES.txt Dumper.py version.txt 
Log Message:
 - Merge CMFFormController handlers from Andy Fundinger.


=== Products/FSDump/CHANGES.txt 1.11 => 1.12 ===
--- Products/FSDump/CHANGES.txt:1.11	Mon Mar 14 13:49:33 2005
+++ Products/FSDump/CHANGES.txt	Fri Apr 29 09:52:51 2005
@@ -2,75 +2,87 @@
 
   After FSDump 0.8.1
 
-    * Fix missing import of ConflictError (thanks to Willi Langenburger
+    - Merged Andy Fundinger's work, adding handlers for the following
+      CMFFormController meta_types:
+
+      o ControllerPythonScript
+
+      o ControllerValidator
+
+      o ControllerPageTemplates
+
+    - Fix missing import of ConflictError (thanks to Willi Langenburger
       for the patch).
 
+    - Applied a patch from Willi Langenburger to permit use of a dumper
+      in the root of the Zope instance.
+
   FSDump 0.8.1 (2004/12/09)
 
-    * Repackaged to nest the actual products directory inside a version-
+    - Repackaged to nest the actual products directory inside a version-
       qualified wrapper directory;  added an INSTALL.txt in the wrapper.
 
   FSDump 0.8 (2004/10/13)
 
-    * Applied patch from Zope collector #1463 to make dumped SQL methods
+    - Applied patch from Zope collector #1463 to make dumped SQL methods
       fit better with CMF's FSSQLMethod representation.
 
   FSDump 0.7 (2004/05/17)
 
-    * Added knob to force use of single '.metadata' file, rather than
+    - Added knob to force use of single '.metadata' file, rather than
       multiples (CMF 1.4 compatibility).
 
-    * Migrated ZMI to use PageTemplates.
+    - Migrated ZMI to use PageTemplates.
 
-    * Bug:  when synthesizing a file extension, Dumper didn't include the
+    - Bug:  when synthesizing a file extension, Dumper didn't include the
       synthesized extension in the name of the "companion" properties file.
 
   FSDump 0.6 (2001/08/09)
 
-    * Add handlers for:
+    - Add handlers for:
 
       - PageTemplate
 
   FSDump 0.5 (2001/08/03)
 
-    * Add handlers for:
+    - Add handlers for:
 
       - PythonScript
 
   FSDump 0.4 (2001/06/18)
 
-    * Conform to the "Finished Project Guidelines",
+    - Conform to the "Finished Project Guidelines",
       http://dev.zope.org/Wikis/DevSite/Proposals/FinishedProductGuidelines
 
-    * Added HelpSystem stuff.
+    - Added HelpSystem stuff.
 
-    * Moved to use declarative security.
+    - Moved to use declarative security.
 
   FSDump 0.3 (2001/01/06)
 
-    * Dump ZClass icon.
+    - Dump ZClass icon.
 
-    * Add handlers for:
+    - Add handlers for:
 
-      - Wizards
+      o Wizards
 
-      - Wizard Pages
+      o Wizard Pages
 
   FSDump 0.2 (2000/11/19)
 
-    * Add handlers for:
+    - Add handlers for:
 
-      - ZClasses
+      o ZClasses
 
-      - ZClass property sheets
+      o ZClass property sheets
 
-      - TTW Permissions
+      o TTW Permissions
 
-      - TTW Factories
+      o TTW Factories
 
-    * Fix unixism in 'Dumper._setFSPath()' -- thanks
+    - Fix unixism in 'Dumper._setFSPath()' -- thanks
       Craig! (cba at mediaone.net)
 
   FSDump 0.1 (2000/11/16)
 
-    * Initial release
+    - Initial release


=== Products/FSDump/Dumper.py 1.12 => 1.13 ===
--- Products/FSDump/Dumper.py:1.12	Mon Mar 14 13:49:33 2005
+++ Products/FSDump/Dumper.py	Fri Apr 29 09:52:51 2005
@@ -301,6 +301,39 @@
         file.write( 'title:string=%s\n' % obj.title )
         file.close()
 
+    security.declarePrivate( '_dumpControllerPythonScript' )
+    def _dumpControllerPythonScript( self, obj, path=None ):
+        #   Dump properties of obj (assumed to be a Python Script) to the
+        #   filesystem as a file, with the accompanyting properties file.
+        file = self._createFile( path, '%s.cpy' % obj.id )
+        file.write( obj.read() )
+        file.close()
+        file = self._createMetadataFile( path, '%s.cpy' % obj.id )
+        file.write( 'title:string=%s\n' % obj.title )
+        file.close()
+
+    security.declarePrivate( '_dumpValidatorScript' )
+    def _dumpValidatorScript( self, obj, path=None ):
+        #   Dump properties of obj (assumed to be a Controller Validator) to the
+        #   filesystem as a file, with the accompanyting properties file.
+        file = self._createFile( path, '%s.vpy' % obj.id )
+        file.write( obj.read() )
+        file.close()
+        file = self._createMetadataFile( path, '%s.vpy' % obj.id )
+        file.write( 'title:string=%s\n' % obj.title )
+        file.close()
+
+    security.declarePrivate( '_dumpControllerPageTemplate' )
+    def _dumpControllerPageTemplate( self, obj, path=None ):
+        #   Dump properties of obj (assumed to be a ZopeControllerPageTemplate) to the
+        #   filesystem as a file, with the accompanyting properties file.
+        file = self._createFile( path, '%s.cpt' % obj.id )
+        file.write( obj.read() )
+        file.close()
+        file = self._createMetadataFile( path, '%s.cpt' % obj.id )
+        file.write( 'title:string=%s\n' % obj.title )
+        file.close()
+
     security.declarePrivate( '_dumpPageTemplate' )
     def _dumpPageTemplate( self, obj, path=None ):
         #   Dump properties of obj (assumed to be a ZopePageTemplate) to the
@@ -486,6 +519,9 @@
                 , 'Image'           : _dumpFileOrImage
                 , 'Python Method'   : _dumpPythonMethod
                 , 'Script (Python)' : _dumpPythonScript
+                , 'Controller Python Script' : _dumpControllerPythonScript
+                , 'Controller Validator' : _dumpValidatorScript
+                , 'Controller Page Template' : _dumpControllerPageTemplate
                 , 'Page Template'   : _dumpPageTemplate
                 , 'Z SQL Method'    : _dumpSQLMethod
                 , 'ZCatalog'        : _dumpZCatalog


=== Products/FSDump/version.txt 1.7 => 1.8 ===
--- Products/FSDump/version.txt:1.7	Wed Oct 13 13:59:51 2004
+++ Products/FSDump/version.txt	Fri Apr 29 09:52:51 2005
@@ -1 +1 @@
-0.8
+0.8.1+



More information about the Zope-CVS mailing list