[Erp5-report] r16578 - /erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 24 17:53:13 CEST 2007


Author: nicolas
Date: Mon Sep 24 17:53:12 2007
New Revision: 16578

URL: http://svn.erp5.org?rev=16578&view=rev
Log:
Change code typo

Modified:
    erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py

Modified: erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py?rev=16578&r1=16577&r2=16578&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py (original)
+++ erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py Mon Sep 24 17:53:12 2007
@@ -1613,21 +1613,25 @@
       # Get the subscriber or create it if not already in the list
       subscriber = publication.getSubscriber(subscription_url)
       if subscriber == None:
-        subscriber = Subscriber(publication.generateNewId(),subscription_url)
+        subscriber = Subscriber(publication.generateNewId(), subscription_url)
         subscriber.setXMLMapping(publication.getXMLMapping())
         subscriber.setConduit(publication.getConduit())
         publication.addSubscriber(subscriber)
         subscriber = subscriber.__of__(publication)
         # first synchronization
-        result = self.PubSyncInit(publication,xml_client,subscriber=subscriber,
-            sync_type=self.SLOW_SYNC)
+        result = self.PubSyncInit(publication=publication,
+                                  xml_client=xml_client,
+                                  subscriber=subscriber,
+                                  sync_type=self.SLOW_SYNC)
       elif self.checkAlert(xml_client) and \
           alert_code in (self.TWO_WAY, self.SLOW_SYNC, \
           self.ONE_WAY_FROM_SERVER):
         subscriber.setXMLMapping(publication.getXMLMapping())
         subscriber.setConduit(publication.getConduit())
-        result = self.PubSyncInit(publication=publication, 
-            xml_client=xml_client, subscriber=subscriber, sync_type=alert_code)
+        result = self.PubSyncInit(publication=publication,
+                                  xml_client=xml_client,
+                                  subscriber=subscriber,
+                                  sync_type=alert_code)
       else:
         #we log the user authenticated to do the synchronization with him
         if self.checkMap(xml_client) :
@@ -1642,9 +1646,10 @@
     elif subscriber is not None:
       # This looks like we are starting a synchronization after
       # a conflict resolution by the user
-      result = self.PubSyncInit(publication=publication, xml_client=None,
-          subscriber=subscriber, sync_type=self.TWO_WAY)
-
+      result = self.PubSyncInit(publication=publication,
+                                xml_client=None,
+                                subscriber=subscriber,
+                                sync_type=self.TWO_WAY)
     if RESPONSE is not None:
       RESPONSE.redirect('managePublications')
     elif result is not None:




More information about the Erp5-report mailing list