From 3b8ea8070d438b4c18dbcc385df65eedb1150180 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Thu, 1 Sep 2011 09:51:19 +0200
Subject: [PATCH] Avoid casting of None into 'None'

return empty string by default
---
 product/ERP5SyncML/Tool/SynchronizationTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5SyncML/Tool/SynchronizationTool.py b/product/ERP5SyncML/Tool/SynchronizationTool.py
index e0ba64e84b..2b21ba314b 100644
--- a/product/ERP5SyncML/Tool/SynchronizationTool.py
+++ b/product/ERP5SyncML/Tool/SynchronizationTool.py
@@ -1501,7 +1501,7 @@ class SynchronizationTool(BaseTool):
     #create element 'SyncML' with a default namespace
     xml = E.SyncML()
     # syncml header
-    data = "%s:%s" % (subscription.getUserId(), subscription.getPassword())
+    data = "%s:%s" % (subscription.getUserId(''), subscription.getPassword(''))
     data = encode(subscription.getAuthenticationFormat(), data)
     xml.append(self.SyncMLHeader(
       subscription.incrementSessionId(),
-- 
2.30.9