Skip to content

Commit

Permalink
Merged r72753:72754 from 2.9 branch.
Browse files Browse the repository at this point in the history
Raise SyntaxError when encountering invalid PythonScript headers.
  • Loading branch information
stefanholek committed Feb 22, 2007
1 parent 9c5fd81 commit c6b7c27
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 441 deletions.
7 changes: 4 additions & 3 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
__version__='$Revision: 1.56 $'[11:-2]

import sys, os, traceback, re, marshal, new
import logging
from logging import getLogger
from Globals import DTMLFile, MessageDialog, package_home
import AccessControl, OFS, RestrictedPython
from Acquisition import aq_parent
Expand All @@ -34,10 +34,11 @@
from OFS.History import Historical, html_diff
from OFS.Cache import Cacheable
from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr

from zExceptions import Forbidden
import Globals

LOG = logging.getLogger('Script (Python)')
LOG = getLogger('PythonScripts')

# Track the Python bytecode version
import imp
Expand Down Expand Up @@ -440,7 +441,7 @@ def write(self, text):
else:
self._makeFunction()
except:
LOG.error('write failed', exc_info=True)
LOG.error('write failed', exc_info=sys.exc_info())
raise

def manage_FTPget(self):
Expand Down
20 changes: 0 additions & 20 deletions Utility.py

This file was deleted.

63 changes: 0 additions & 63 deletions __init__.py

This file was deleted.

235 changes: 0 additions & 235 deletions help/PythonScript.py

This file was deleted.

28 changes: 0 additions & 28 deletions help/Script.py

This file was deleted.

Loading

0 comments on commit c6b7c27

Please sign in to comment.