Commit 78480427 authored by Alexandre Boeglin's avatar Alexandre Boeglin

fix security definitions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6459 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 336d30ad
...@@ -97,7 +97,7 @@ class ExtFolder( XMLObject ): ...@@ -97,7 +97,7 @@ class ExtFolder( XMLObject ):
repository = os.path.join(*ExtFile._repository) repository = os.path.join(*ExtFile._repository)
return os.path.sep.join((instance_home, repository, self.getPath())) return os.path.sep.join((instance_home, repository, self.getPath()))
security.declareProtected('Manage portal', 'PUT_factory') security.declareProtected('Manage portal', 'generateRpmHeaderList')
def generateRpmHeaderList(self): def generateRpmHeaderList(self):
"""Run genhdlist on the directory behind this object. """Run genhdlist on the directory behind this object.
""" """
...@@ -105,7 +105,7 @@ class ExtFolder( XMLObject ): ...@@ -105,7 +105,7 @@ class ExtFolder( XMLObject ):
if status != 0: if status != 0:
raise RuntimeError, "failed in executing genhdlist" raise RuntimeError, "failed in executing genhdlist"
security.declareProtected('Manage portal', 'PUT_factory') security.declareProtected('Manage portal', 'generateBt5HeaderList')
def generateBt5HeaderList(self): def generateBt5HeaderList(self):
"""Run genbt5list on the directory behind this object. """Run genbt5list on the directory behind this object.
""" """
......
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