Commit f8e7093f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos in method names of security declarations.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12999 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 364071d6
...@@ -223,7 +223,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated, ...@@ -223,7 +223,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated,
else: else:
return 1 return 1
security.declareProtected(Permissions.View, 'getDivergentList') security.declareProtected(Permissions.View, 'getDivergenceList')
def getDivergenceList(self): def getDivergenceList(self):
""" """
Return a list of messages that contains the divergences Return a list of messages that contains the divergences
......
...@@ -303,7 +303,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -303,7 +303,7 @@ class ImmobilisationMovement(Movement, XMLObject):
return parameter_dict return parameter_dict
security.declareProtected(Permissions.View, 'getActualAmortisationMethod') security.declareProtected(Permissions.View, 'getActualAmortisationMethodForItem')
def getActualAmortisationMethodForItem(self, item, **kw): def getActualAmortisationMethodForItem(self, item, **kw):
""" """
Returns the actual amortisation method by getting the previous Returns the actual amortisation method by getting the previous
......
...@@ -992,7 +992,7 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -992,7 +992,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
self.cookie_password = cookie_password self.cookie_password = cookie_password
return cookie_password return cookie_password
security.declareProtected(ERP5Permissions.View, 'registerCookieInfo') security.declareProtected(ERP5Permissions.View, 'setCookieInfo')
def setCookieInfo(self,request,cookie_name,**kw): def setCookieInfo(self,request,cookie_name,**kw):
""" """
register info directly in cookie register info directly in cookie
......
...@@ -653,7 +653,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -653,7 +653,7 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
directory._delObject(copy_id) directory._delObject(copy_id)
signature.setStatus(self.PUB_CONFLICT_MERGE) signature.setStatus(self.PUB_CONFLICT_MERGE)
security.declareProtected(Permissions.ModifyPortalContent, 'manageLocalValue') security.declareProtected(Permissions.ModifyPortalContent, 'managePublisherValue')
def managePublisherValue(self, subscription_url, property_id, object_path, RESPONSE=None): def managePublisherValue(self, subscription_url, property_id, object_path, RESPONSE=None):
""" """
Do whatever needed in order to store the local value on Do whatever needed in order to store the local value on
......
...@@ -249,7 +249,7 @@ if allowMemcachedTool(): ...@@ -249,7 +249,7 @@ if allowMemcachedTool():
self._v_memcached_dict = dictionary self._v_memcached_dict = dictionary
return dictionary return dictionary
security.declareProtected(Permissions.AccessContentsInformation, 'getMemcacheDict') security.declareProtected(Permissions.AccessContentsInformation, 'getMemcachedDict')
def getMemcachedDict(self, key_prefix): def getMemcachedDict(self, key_prefix):
""" """
Returns an object which can be used as a dict and which gets from/stores Returns an object which can be used as a dict and which gets from/stores
......
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