Index: ExternalFile.py
===================================================================
RCS file: /repository/cvsroot/com/arielpartners/zope/ExternalFile/ExternalFile.py,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- ExternalFile.py	2002/03/13 19:42:53	1.61
+++ ExternalFile.py	2002/04/01 01:13:14	1.62
@@ -9,8 +9,8 @@
 """
 
 __cvstag__  = '$Name:  $'[6:-2]
-__date__    = '$Date: 2002/03/13 19:42:53 $'[6:-2]
-__version__ = '$Revision: 1.61 $'[10:-2]
+__date__    = '$Date: 2002/04/01 01:13:14 $'[6:-2]
+__version__ = '$Revision: 1.62 $'[10:-2]
 
 #
 # Add our base classes.  Derived classes will get this stuff automatically
@@ -682,7 +682,8 @@
     _minRows = 5
 
     _security.declareProtected('Edit', 'manage_editAction')
-    def manage_editAction(self, externalfile_content, SUBMIT,
+    def manage_editAction(self, externalfile_content = None,
+                          SUBMIT = 'Cancel Changes',
                           edit_textarea_cols = '80',
                           edit_textarea_rows = '40',
                           upload_file = None,
@@ -702,7 +703,7 @@
 
         elif SUBMIT == 'Cancel Changes':
             message = 'Content changes cancelled.'
-            return self.manage_editForm(externalfile_content=None,
+            return self.manage_editForm(externalfile_content,
                                         header_message=message)
 
         elif SUBMIT == 'Upload File':
@@ -719,7 +720,7 @@
             if valid:
                 self.setContents(upload_contents, REQUEST)
                 message = 'Content changed. (%s)' % DateTime().ISO()
-                return self.manage_editForm(externalfile_content=None,
+                return self.manage_editForm(externalfile_content,
                                             header_message=message)
             else:
                 message.replace('\n','<br/>')
