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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 21 15:37:15 CEST 2007


Author: nicolas
Date: Fri Sep 21 15:37:15 2007
New Revision: 16538

URL: http://svn.erp5.org?rev=16538&view=rev
Log:
add space, and fix syntax

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=16538&r1=16537&r2=16538&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py (original)
+++ erp5/trunk/products/ERP5SyncML/XMLSyncUtils.py Fri Sep 21 15:37:15 2007
@@ -1064,7 +1064,7 @@
         signature.setRid(rid)
       #LOG('gid == rid ?', DEBUG, 'gid=%s, rid=%s' % (gid, rid))
       object = subscriber.getObjectFromGid(gid)
-      if object == None and not(domain.getSynchronizeWithERP5Sites()):
+      if object is None and not domain.getSynchronizeWithERP5Sites():
         #if the object is None, that could mean two things :
         # - the object to synchronize don't exists
         # - the id is not a gid but a rid
@@ -1533,19 +1533,19 @@
       has_response = 1
     elif domain.domain_type == self.SUB:
       if self.checkAlert(remote_xml) or \
-          (xml_confirmation,syncml_data) != ('',''):
+          (xml_confirmation, syncml_data) != ('', ''):
         subscriber.setLastSentMessage(xml_a)
         self.sendResponse(
                   from_url=domain.subscription_url,
                   to_url=domain.publication_url,
                   sync_id=domain.getTitle(),
-                  xml=xml_a,domain=domain,
+                  xml=xml_a, domain=domain,
                   content_type=domain.getSyncContentType())
         has_response = 1
       else:
         LOG('this is the end of the synchronisation session !!!', INFO, '')
         domain.setAuthenticated(False)
-    return {'has_response':has_response,'xml':xml_a}
+    return {'has_response':has_response, 'xml':xml_a}
 
   def xml2wbxml(self, xml):
     """




More information about the Erp5-report mailing list