Skip to content

Commit

Permalink
Fix incompatibility with ZClasses
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Dec 15, 2000
1 parent 485638f commit 0847dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
Python code.
"""

__version__='$Revision: 1.4 $'[11:-2]
__version__='$Revision: 1.5 $'[11:-2]

import sys, os, traceback, re
from Globals import MessageDialog, HTMLFile, package_home
Expand Down Expand Up @@ -119,7 +119,7 @@ def manage_addPythonScript(self, id, REQUEST=None):
file = REQUEST.form.get('file', None)
if file:
if type(file) is not type(''): file = file.read()
getattr(self, id).write(file)
self._getOb(id).write(file)
try: u = self.DestinationURL()
except: u = REQUEST['URL1']
REQUEST.RESPONSE.redirect('%s/%s/manage_main' % (u, quote(id)))
Expand Down

0 comments on commit 0847dff

Please sign in to comment.