CVS: Products/FSDump - CHANGES.txt:1.18 Dumper.py:1.18 version.txt:1.13

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Update of /cvs-repository/Products/FSDump
In directory cvs.zope.org:/tmp/cvs-serv631

Modified Files:
	CHANGES.txt Dumper.py version.txt 
Log Message:


  - Applied patch from Willi Langenburger, adding a handler for ZWikiPage
    objects.


=== Products/FSDump/CHANGES.txt 1.17 => 1.18 ===
--- Products/FSDump/CHANGES.txt:1.17	Tue Aug  9 12:19:32 2005
+++ Products/FSDump/CHANGES.txt	Mon Nov  7 21:30:41 2005
@@ -1,5 +1,10 @@
 FSDump Change Log
 
+  After FSDump 0.9.2
+
+    - Applied patch from Willi Langenburger, adding a handler for ZWikiPage
+      objects.
+
   FSDump 0.9.2 (2005/08/09)
 
     - CVS tag:  'FSDump-0_9_2'


=== Products/FSDump/Dumper.py 1.17 => 1.18 ===
--- Products/FSDump/Dumper.py:1.17	Tue Aug  9 12:17:08 2005
+++ Products/FSDump/Dumper.py	Mon Nov  7 21:30:41 2005
@@ -257,6 +257,22 @@
             file.write( 'title:string=%s\n' % obj.title )
         file.close()
 
+    security.declarePrivate( '_dumpZWikiPage' )
+    def _dumpZWikiPage( self, obj, path=None, suffix='zwiki' ):
+        peer_id = obj.id()
+        file = self._createFile( path, '%s.%s' % ( peer_id, suffix ) )
+        text = obj.text()
+        if text[-1] != '\n':
+            text = '%s\n' % text
+        file.write( text )
+        file.close()
+
+        if self.use_metadata_file:
+            file = self._createMetadataFile( path, '%s.%s' % ( peer_id,suffix))
+            self._writeProperties( obj, file )
+            self._dumpSecurityInfo(obj, file)
+            file.close()
+
     security.declarePrivate( '_dumpDTMLDocument' )
     def _dumpDTMLDocument( self, obj, path=None ):
         #   Dump properties of obj (assumed to be a DTML Document) to the
@@ -577,6 +593,7 @@
                 , 'Wizard'          : _dumpWizard
                 , 'Wizard Page'     : _dumpWizardPage
                #, 'SQL DB Conn'     : _dumpDBConn
+                , 'ZWiki Page'      : _dumpZWikiPage
                 }
 
     security.declareProtected( USE_DUMPER_PERMISSION, 'testDump' )


=== Products/FSDump/version.txt 1.12 => 1.13 ===
--- Products/FSDump/version.txt:1.12	Tue Aug  9 12:19:32 2005
+++ Products/FSDump/version.txt	Mon Nov  7 21:30:41 2005
@@ -1 +1 @@
-FSDump-0.9.2
+FSDump-0.9.2+

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

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.