Commit 346a7e84 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Add missing security declarations.

parent a7537daa
......@@ -207,6 +207,7 @@ class SyncMLSubscription(XMLObject):
"""
return "%s%%" % (self.getSourceValue().getPath().replace("_","\_"),)
security.declarePrivate('sendSyncCommand')
def sendSyncCommand(self, min_gid, max_gid, message_id, activate_kw):
"""
This methods is intented to be called by asynchronous engine in activity to
......@@ -670,6 +671,7 @@ class SyncMLSubscription(XMLObject):
self.activate(**final_activate_kw).sendMessage(xml=str(syncml_response))
security.declarePrivate('getDeletedSyncMLData')
def getDeletedSyncMLData(self, syncml_response=None):
"""
Retrieve & generate the syncml message for messages that were deleted
......
......@@ -98,6 +98,8 @@ class IntegrationModule(XMLObject):
except ValueError, msg:
raise KeyError, msg
security.declareProtected(Permissions.AccessContentsInformation,
'getGIDFor')
def getGIDFor(self, item):
"""
Return the gid for a given local id
......
......@@ -61,6 +61,8 @@ class IntegrationSite(Folder):
)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryFromMapping')
def getCategoryFromMapping(self, category, product=None, create_mapping=False,
create_mapping_line=False):
"""
......@@ -144,6 +146,8 @@ class IntegrationSite(Folder):
raise ValueError, "Mapping not defined for %s" % category
return mapped_variation_category[-1]
security.declareProtected(Permissions.AccessContentsInformation,
'getMappingFromCategory')
def getMappingFromCategory(self, category):
"""
This method allows to retrieve through the mapping in the integration
......@@ -180,6 +184,8 @@ class IntegrationSite(Folder):
# individual variation
return '/'.join([mapping.getSourceReference(), variation])
security.declareProtected(Permissions.AccessContentsInformation,
'getMappingFromProperty')
def getMappingFromProperty(self, base_mapping, property_name):
"""
This method allows to retrieve throuhh the mapping in the integration
......
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