From 6ce1dca4d87bf7aafa8a8fd35a8c4810fada51c9 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Mon, 12 Jul 2004 15:35:54 +0000 Subject: [PATCH] make user interface working again for sync git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1151 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/Subscription.py | 2 ++ product/ERP5SyncML/SynchronizationTool.py | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/product/ERP5SyncML/Subscription.py b/product/ERP5SyncML/Subscription.py index 7e46994ddd..4b7d7bf912 100755 --- a/product/ERP5SyncML/Subscription.py +++ b/product/ERP5SyncML/Subscription.py @@ -942,6 +942,8 @@ class Subscription(SyncCode, Implicit, Folder): """ add a Signature to the subscription """ + if signature.getGid() in self.objectIds(): + self._delObject(signature.getGid()) self._setObject( signature.getGid(), signature ) def delSignature(self, gid): diff --git a/product/ERP5SyncML/SynchronizationTool.py b/product/ERP5SyncML/SynchronizationTool.py index fc1a512488..eea00b21ce 100755 --- a/product/ERP5SyncML/SynchronizationTool.py +++ b/product/ERP5SyncML/SynchronizationTool.py @@ -273,6 +273,15 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati if RESPONSE is not None: RESPONSE.redirect('manageSubscriptions') + security.declareProtected(Permissions.ModifyPortalContent, 'manage_syncSubscription') + def manage_syncSubscription(self, title, RESPONSE=None): + """ + reset a subscription + """ + self.SubSync(title) + if RESPONSE is not None: + RESPONSE.redirect('manageSubscriptions') + security.declareProtected(Permissions.AccessContentsInformation,'getPublicationList') def getPublicationList(self): """ -- 2.30.9