[Zope-CVS] CVS: Products/FSDump - Dumper.py:1.16
Tres Seaver
tseaver at palladion.com
Tue Aug 9 11:31:04 EDT 2005
Update of /cvs-repository/Products/FSDump
In directory cvs.zope.org:/tmp/cvs-serv13257
Modified Files:
Dumper.py
Log Message:
- Added argument to Dumper factory to allow caller to supply handler overrides.
=== Products/FSDump/Dumper.py 1.15 => 1.16 ===
--- Products/FSDump/Dumper.py:1.15 Tue May 10 14:11:13 2005
+++ Products/FSDump/Dumper.py Tue Aug 9 11:31:03 2005
@@ -18,12 +18,20 @@
USE_DUMPER_PERMISSION = 'Use Dumper'
-def addDumper( self, id, fspath=None, use_metadata_file=0, REQUEST=None ):
+def addDumper( self
+ , id
+ , fspath=None
+ , use_metadata_file=0
+ , handler_overrides=None
+ , REQUEST=None
+ ):
"""
"""
dumper = Dumper()
dumper.id = id
dumper.edit( fspath, use_metadata_file )
+ if handler_overrides is not None:
+ self._handlers.update(dict(handler_overrides))
self._setObject( id, dumper )
if REQUEST is not None:
More information about the Zope-CVS
mailing list