From cc2f4f33b70c405a12accfe4aeef0809a63226f3 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 26 Feb 2011 10:45:28 +0100 Subject: [PATCH] fix detection of changes when the init content is empty --- weboob/applications/webcontentedit/webcontentedit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weboob/applications/webcontentedit/webcontentedit.py b/weboob/applications/webcontentedit/webcontentedit.py index a318d934..9b124ac8 100644 --- a/weboob/applications/webcontentedit/webcontentedit.py +++ b/weboob/applications/webcontentedit/webcontentedit.py @@ -66,7 +66,10 @@ class WebContentEdit(ReplApplication): data = content.content if isinstance(data, unicode): data = data.encode('utf-8') - f.write(data or '') + elif data is None: + data = '' + f.write(data) + content.content = data paths[path] = content params = ''