Skip to content

Commit

Permalink
Fix two snafus:
Browse files Browse the repository at this point in the history
- Python 2.3 doesn't support the @decorator syntax
- Owner.py methods weren't protected

Also, python 2.3's doctest module doesn't have any unittest integration,
just remove the test_requestmethod.py glue.
  • Loading branch information
Martijn Pieters committed Mar 21, 2007
1 parent b0c65c2 commit 261678c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonScript.py
Expand Up @@ -350,7 +350,6 @@ def _validateProxy(self, roles=None):
'manage_proxyForm', 'manage_proxy')

manage_proxyForm = DTMLFile('www/pyScriptProxy', globals())
@postonly
def manage_proxy(self, roles=(), REQUEST=None):
"Change Proxy Roles"
self._validateProxy(roles)
Expand All @@ -361,6 +360,7 @@ def manage_proxy(self, roles=(), REQUEST=None):
title ='Success!',
message='Your changes have been saved',
action ='manage_main')
manage_proxy = postonly(manage_proxy)

security.declareProtected('Change Python Scripts',
'PUT', 'manage_FTPput', 'write',
Expand Down

0 comments on commit 261678c

Please sign in to comment.