Commit 26d2825e authored by Sebastien Robin's avatar Sebastien Robin

added addNode


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1516a57
...@@ -954,6 +954,16 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati ...@@ -954,6 +954,16 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati
""" """
return 'sub_' + title return 'sub_' + title
security.declareProtected(Permissions.ModifyPortalContent, 'addNode')
def addNode(self, conduit='ERP5Conduit',**kw):
"""
"""
# Import the conduit and get it
from Products.ERP5SyncML import Conduit
conduit_module = __import__('.'.join([Conduit.__name__, conduit]), globals(), locals(), [''])
conduit_object = getattr(conduit_module, conduit)()
return conduit_object.addNode(**kw)
# security.declarePrivate('notify_sync') # security.declarePrivate('notify_sync')
# def notify_sync(self, event_type, object, infos): # def notify_sync(self, event_type, object, infos):
# """Notification from the event service. # """Notification from the event service.
......
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