Commit 6ce1dca4 authored by Sebastien Robin's avatar Sebastien Robin

make user interface working again for sync


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1151 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a101afdd
......@@ -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):
......
......@@ -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):
"""
......
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