[Zope-CVS] CVS: Products/FSDump - CHANGES.txt:1.19 Dumper.py:1.19
Tres Seaver
tseaver at palladion.com
Wed Feb 15 12:11:27 EST 2006
Update of /cvs-repository/Products/FSDump
In directory cvs.zope.org:/tmp/cvs-serv9488
Modified Files:
CHANGES.txt Dumper.py
Log Message:
- Applied patch from Alejo Roda, adding a handler for Formulator forms.
=== Products/FSDump/CHANGES.txt 1.18 => 1.19 ===
--- Products/FSDump/CHANGES.txt:1.18 Mon Nov 7 21:30:41 2005
+++ Products/FSDump/CHANGES.txt Wed Feb 15 12:11:26 2006
@@ -2,6 +2,8 @@
After FSDump 0.9.2
+ - Applied patch from Alejo Roda, adding a handler for Formulator forms.
+
- Applied patch from Willi Langenburger, adding a handler for ZWikiPage
objects.
=== Products/FSDump/Dumper.py 1.18 => 1.19 ===
--- Products/FSDump/Dumper.py:1.18 Mon Nov 7 21:30:41 2005
+++ Products/FSDump/Dumper.py Wed Feb 15 12:11:26 2006
@@ -571,6 +571,14 @@
self._writeProperties( obj, file )
file.close()
+ security.declarePrivate( '_dumpFormulatorForm' )
+ def _dumpFormulatorForm( self, obj, path=None ):
+ if path is None:
+ path = ''
+ file = self._createFile(path, obj.id + '.form')
+ file.write(obj.get_xml())
+ file.close()
+
_handlers = { 'DTML Method' : _dumpDTMLMethod
, 'DTML Document' : _dumpDTMLDocument
, 'Folder' : _dumpFolder
@@ -592,6 +600,7 @@
, 'Zope Factory' : _dumpFactory
, 'Wizard' : _dumpWizard
, 'Wizard Page' : _dumpWizardPage
+ , 'Formulator Form' : _dumpFormulatorForm
#, 'SQL DB Conn' : _dumpDBConn
, 'ZWiki Page' : _dumpZWikiPage
}
More information about the Zope-CVS
mailing list