Commit 1afba1f6 authored by 's avatar

Added explicit permission

parent e438f1e1
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
# #
############################################################################## ##############################################################################
__doc__='''Python Scripts Product Initialization __doc__='''Python Scripts Product Initialization
$Id: __init__.py,v 1.5 2001/01/09 21:48:42 evan Exp $''' $Id: __init__.py,v 1.6 2001/01/10 21:33:06 brian Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import PythonScript import PythonScript
try: try:
...@@ -103,10 +103,12 @@ __allow_access_to_unprotected_subobjects__ = 1 ...@@ -103,10 +103,12 @@ __allow_access_to_unprotected_subobjects__ = 1
def initialize(context): def initialize(context):
context.registerClass( context.registerClass(
instance_class=PythonScript.PythonScript, PythonScript.PythonScript,
permission='Add Python Scripts',
constructors=(PythonScript.manage_addPythonScriptForm, constructors=(PythonScript.manage_addPythonScriptForm,
PythonScript.manage_addPythonScript), PythonScript.manage_addPythonScript),
icon='www/pyscript.gif') icon='www/pyscript.gif'
)
context.registerHelp() context.registerHelp()
context.registerHelpTitle('Zope Help') context.registerHelpTitle('Zope Help')
...@@ -3,7 +3,8 @@ __doc__="""SiteAccess product""" ...@@ -3,7 +3,8 @@ __doc__="""SiteAccess product"""
import SiteRoot, AccessRule, VirtualHostMonster import SiteRoot, AccessRule, VirtualHostMonster
def initialize(context): def initialize(context):
context.registerClass(instance_class=SiteRoot.SiteRoot, context.registerClass(instance_class=SiteRoot.SiteRoot,
permission='Add Site Roots',
constructors=SiteRoot.constructors, legacy=SiteRoot.constructors, constructors=SiteRoot.constructors, legacy=SiteRoot.constructors,
icon='www/SiteRoot.gif') icon='www/SiteRoot.gif')
context.registerClass(instance_class=AccessRule.AccessRule, context.registerClass(instance_class=AccessRule.AccessRule,
......
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