Commit 95eeb375 authored by Sebastien Robin's avatar Sebastien Robin

corrected a few bugs when initializing a new synchro


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cd7a352f
...@@ -34,6 +34,16 @@ from Products.ERP5Type.Document.Folder import Folder ...@@ -34,6 +34,16 @@ from Products.ERP5Type.Document.Folder import Folder
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import PropertySheet from Products.ERP5Type import PropertySheet
def addSubscriber( self, id, title='', REQUEST=None ):
"""
Add a new Category and generate UID by calling the
ZSQLCatalog
"""
o = Subscriber( id ,'')
self._setObject( id, o )
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1)
return o
class Subscriber(Subscription): class Subscriber(Subscription):
""" """
...@@ -56,7 +66,6 @@ class Subscriber(Subscription): ...@@ -56,7 +66,6 @@ class Subscriber(Subscription):
self.last_anchor = '00000000T000000Z' self.last_anchor = '00000000T000000Z'
self.next_anchor = '00000000T000000Z' self.next_anchor = '00000000T000000Z'
self.session_id = 0 self.session_id = 0
self.signatures = {}
Folder.__init__(self, id) Folder.__init__(self, id)
def ReceiveDocuments(self): def ReceiveDocuments(self):
......
...@@ -238,6 +238,7 @@ class Signature(SyncCode,Folder): ...@@ -238,6 +238,7 @@ class Signature(SyncCode,Folder):
self.force = 0 self.force = 0
self.setSubscriberXupdate(None) self.setSubscriberXupdate(None)
self.setPublisherXupdate(None) self.setPublisherXupdate(None)
Folder.__init__(self,id)
def setStatus(self, status): def setStatus(self, status):
""" """
......
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