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 ):
repository = os.path.join(*ExtFile._repository)
return os.path.sep.join((instance_home, repository, self.getPath()))
security.declareProtected('Manage portal', 'PUT_factory')
security.declareProtected('Manage portal', 'generateRpmHeaderList')
def generateRpmHeaderList(self):
"""Run genhdlist on the directory behind this object.
"""
......@@ -105,7 +105,7 @@ class ExtFolder( XMLObject ):
if status != 0:
raise RuntimeError, "failed in executing genhdlist"
security.declareProtected('Manage portal', 'PUT_factory')
security.declareProtected('Manage portal', 'generateBt5HeaderList')
def generateBt5HeaderList(self):
"""Run genbt5list on the directory behind this object.
"""
......@@ -117,4 +117,4 @@ class ExtFolder( XMLObject ):
"""Called before deleting this object.
"""
self._v_deletion = Deletion(self._getRepositoryPath())
XMLObject.manage_beforeDelete(self, item, container)
\ No newline at end of file
XMLObject.manage_beforeDelete(self, item, container)
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