diff --git a/product/ERP5SyncML/Document/SyncMLSubscription.py b/product/ERP5SyncML/Document/SyncMLSubscription.py index 0f97bb3f9150441a4a11e7f6cc74cca099416c8b..4968298bb19c273341473b815b26510e951ddafb 100644 --- a/product/ERP5SyncML/Document/SyncMLSubscription.py +++ b/product/ERP5SyncML/Document/SyncMLSubscription.py @@ -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 diff --git a/product/ERP5TioSafe/Document/IntegrationModule.py b/product/ERP5TioSafe/Document/IntegrationModule.py index 8a9d46fc8e13a96de4521e41df5127fbfa6382dc..d1f21ab235a71601d2e914497a199d04ac38cedd 100644 --- a/product/ERP5TioSafe/Document/IntegrationModule.py +++ b/product/ERP5TioSafe/Document/IntegrationModule.py @@ -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 diff --git a/product/ERP5TioSafe/Document/IntegrationSite.py b/product/ERP5TioSafe/Document/IntegrationSite.py index 89caaa0dc03b556caca9368820d8a08aaf6e5fea..10d9eeb6ee0cdd952f8a244122816296ec49cb4d 100644 --- a/product/ERP5TioSafe/Document/IntegrationSite.py +++ b/product/ERP5TioSafe/Document/IntegrationSite.py @@ -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