CVS: Products/FSDump - Dumper.py:1.16

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-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:

_______________________________________________
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.