Commit 16bd38cb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix security declarations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13174 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2160a804
......@@ -255,7 +255,7 @@ class ImmobilisationMovement(Movement, XMLObject):
return self.getAmortisationMethodParameterForItem(None, parameter_list, **kw)
security.declareProtected(Permissions.View, 'getAmortisationMethodParameter')
security.declareProtected(Permissions.View, 'getAmortisationMethodParameterForItem')
def getAmortisationMethodParameterForItem(self, item, parameter_list, split_char=None, split_qty=3, **kw):
"""
Returns a dictionary containing the value of each parameter
......@@ -326,7 +326,7 @@ class ImmobilisationMovement(Movement, XMLObject):
return None
security.declareProtected(Permissions.View, 'getNeededSpecificParameterListForItem()')
security.declareProtected(Permissions.View, 'getNeededSpecificParameterListForItem')
def getNeededSpecificParameterListForItem(self, item, **kw):
"""
Returns the list of specific parameters which are
......@@ -339,7 +339,7 @@ class ImmobilisationMovement(Movement, XMLObject):
**kw)["needed_specific_parameter_list"]
security.declareProtected(Permissions.View, 'getUncontinuousNeededSpecificParameterListForItem()')
security.declareProtected(Permissions.View, 'getUncontinuousNeededSpecificParameterListForItem')
def getUncontinuousNeededSpecificParameterListForItem(self, item, **kw):
"""
Returns the list of specific parameters which are
......@@ -353,7 +353,7 @@ class ImmobilisationMovement(Movement, XMLObject):
**kw)["uncontinuous_needed_specific_parameter_list"]
security.declareProtected(Permissions.View, 'getFacultativeSpecificParameterListForItem()')
security.declareProtected(Permissions.View, 'getFacultativeSpecificParameterListForItem')
def getFacultativeSpecificParameterListForItem(self, item, **kw):
"""
Returns the list of specific parameters which are
......
......@@ -129,7 +129,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
manage_addPublicationForm = DTMLFile( 'dtml/manage_addPublication', globals() )
security.declareProtected( CMFCorePermissions.ManagePortal
, 'manageSubsciptions' )
, 'manageSubscriptions' )
manageSubscriptions = DTMLFile( 'dtml/manageSubscriptions', globals() )
security.declareProtected( CMFCorePermissions.ManagePortal
......
......@@ -471,21 +471,20 @@ class Catalog( Folder,
['manage_catalogObject', 'manage_uncatalogObject',
'manage_catalogView', 'manage_catalogFind',
'manage_catalogSchema', 'manage_catalogFilter',
'manage_catalogAdvanced', 'manage_objectInformation',
'manage_catalogFilter',
'manage_catalogAdvanced',
'manage_catalogReindex', 'manage_catalogFoundItems',
'manage_catalogClear', 'manage_editSchema',
'manage_reindexIndex', 'manage_main',
'manage_catalogClear',
'manage_main',
'manage_editFilter',
],
['Manager']),
('Search ZCatalog',
['searchResults', '__call__', 'uniqueValuesFor',
'getpath', 'schema', 'names', 'columns', 'indexes', 'index_objects',
'all_meta_types', 'valid_roles', 'resolve_url',
'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds',
'all_meta_types', 'valid_roles',
'getCatalogSearchTableIds',
'getFilterableMethodList', ],
['Anonymous', 'Manager']),
......
......@@ -130,7 +130,7 @@ class ZCatalog(Folder, Persistent, Implicit):
'manage_catalogReindex', 'manage_catalogFoundItems',
'manage_catalogClear', 'manage_editSchema',
'manage_reindexIndex', 'manage_main',
'manage_main',
'manage_editFilter',
'manage_hotReindexAll',
......@@ -140,7 +140,7 @@ class ZCatalog(Folder, Persistent, Implicit):
('Search ZCatalog',
['searchResults', '__call__', 'uniqueValuesFor',
'getpath', 'schema', 'names', 'columns', 'indexes', 'index_objects',
'getpath', 'schema', 'names', 'indexes',
'all_meta_types', 'valid_roles', 'resolve_url',
'getobject', 'getObject', 'getObjectList', 'getCatalogSearchTableIds',
'getCatalogSearchResultKeys', 'getFilterableMethodList', ],
......
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