Skip to content

Commit

Permalink
Fix __ac_permissions__
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Jan 8, 2001
1 parent d7f505c commit 5bbff5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
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
Expand Down Expand Up @@ -153,15 +153,15 @@ 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',
'ZPythonScript_setTitle', 'ZPythonScriptHTML_upload',
'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):
Expand Down
4 changes: 2 additions & 2 deletions Script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5bbff5e

Please sign in to comment.