[DOC] Documentation
authorRichard Mathot (OpenERP) <rim@openerp.com>
Tue, 24 Dec 2013 13:42:15 +0000 (14:42 +0100)
committerRichard Mathot (OpenERP) <rim@openerp.com>
Tue, 24 Dec 2013 13:42:15 +0000 (14:42 +0100)
bzr revid: rim@openerp.com-20131224134215-3v4ae82zlygl6l7y

addons/survey/controllers/main.py

index d4435bb..ff307d8 100644 (file)
@@ -282,7 +282,9 @@ class WebsiteSurvey(http.Controller):
 
 
 def dict_soft_update(dictionary, key, value):
-    ''' Insert the pair <key>: <value> into the <dictionary> '''
+    ''' Insert the pair <key>: <value> into the <dictionary>. If <key> is
+    already present, this function will append <value> to the list of
+    existing data (instead of erasing it) '''
     if key in dictionary:
         dictionary[key].append(value)
     else: