Commit 3509fc9a authored by Evan Simpson's avatar Evan Simpson

Fix __ac_permissions__

parent 67a2c8a9
......@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__='$Revision: 1.7 $'[11:-2]
__version__='$Revision: 1.8 $'[11:-2]
import sys, os, traceback, re
from Globals import MessageDialog, HTMLFile, package_home
......@@ -153,7 +153,7 @@ class PythonScript(Script, Historical, Cacheable):
__ac_permissions__ = (
('View management screens',
('ZPythonScriptHTML_editForm', 'ZPythonScript_changePrefs',
('ZPythonScriptHTML_editForm', 'ZPythonScriptHTML_changePrefs',
'manage_main', 'ZScriptHTML_tryForm', 'read')),
('Change Python Scripts',
('ZPythonScript_edit', 'PUT', 'manage_FTPput', 'write',
......@@ -161,7 +161,7 @@ class PythonScript(Script, Historical, Cacheable):
'ZPythonScriptHTML_uploadForm', 'manage_historyCopy',
'manage_beforeHistoryCopy', 'manage_afterHistoryCopy')),
('Change proxy roles', ('manage_proxyForm', 'manage_proxy')),
('View', ('__call__','','ZPythonScriptHTML_tryAction')),
('View', ('__call__','')),
)
def __init__(self, id):
......
......@@ -88,7 +88,7 @@
This provides generic script support
"""
__version__='$Revision: 1.1 $'[11:-2]
__version__='$Revision: 1.2 $'[11:-2]
import os
from Globals import package_home, HTMLFile
......@@ -121,7 +121,7 @@ class Script(SimpleItem, Bindings):
__ac_permissions__ = (
('View management screens', ('ZScriptHTML_tryForm',)),
('View', ('__call__','','ZPythonScriptHTML_tryAction')),
('View', ('__call__','','ZScriptHTML_tryAction')),
)
ZScriptHTML_tryForm = HTMLFile('scriptTry', _www)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment