[Zope-Checkins] CVS: Zope2 - ObjectManager.py:1.137.4.5
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Thu, 5 Jul 2001 11:34:56 -0400
Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/tmp/cvs-serv27523
Modified Files:
Tag: Zope-2_4-branch
ObjectManager.py
Log Message:
Removed MessageDialog for Import/Export. Instead we call manage_main.
--- Updated File ObjectManager.py in package Zope2 --
--- ObjectManager.py 2001/07/05 13:16:42 1.137.4.4
+++ ObjectManager.py 2001/07/05 15:34:55 1.137.4.5
@@ -521,7 +521,7 @@
return r
def manage_exportObject(self, id='', download=None, toxml=None,
- RESPONSE=None):
+ RESPONSE=None,REQUEST=None):
"""Exports an object to a file and returns that file."""
if not id:
# can't use getId() here (breaks on "old" exported objects)
@@ -547,12 +547,13 @@
XMLExportImport.exportXML(ob._p_jar, ob._p_oid, f)
else:
ob._p_jar.exportFile(ob._p_oid, f)
- if RESPONSE is not None:
- return MessageDialog(
- title="Object exported",
- message="<EM>%s</EM> sucessfully\
- exported to <pre>%s</pre>." % (id, f),
- action="manage_main")
+
+ if REQUEST is not None:
+ return self.manage_main(self, REQUEST,
+ manage_tabs_message=
+ '<em>%s</em> sucessfully exported to <em>%s</em>' % (id,f),
+ title = 'Object exported')
+
manage_importExportForm=DTMLFile('dtml/importExport',globals())