Author: ianb
Date: 2006-02-01 09:23:11 -0700 (Wed, 01 Feb 2006)
New Revision: 1557
Modified:
FormEncode/trunk/formencode/variabledecode.py
Log:
Pass through dict_char and list_char to recursive invocations of variable_encode
Modified: FormEncode/trunk/formencode/variabledecode.py
===================================================================
--- FormEncode/trunk/formencode/variabledecode.py 2006-02-01 16:22:31 UTC
(rev 1556)
+++ FormEncode/trunk/formencode/variabledecode.py 2006-02-01 16:23:11 UTC
(rev 1557)
@@ -119,10 +119,12 @@
name = key
else:
name = "%s%s%s" % (prepend, dict_char, key)
- variable_encode(value, name, result, add_repetitions)
+ variable_encode(value, name, result, add_repetitions,
+ dict_char=dict_char, list_char=list_char)
elif isinstance(d, list):
for i in range(len(d)):
- variable_encode(d[i], "%s%s%i" % (prepend, list_char, i), result)
+ variable_encode(d[i], "%s%s%i" % (prepend, list_char, i), result,
+ add_repetitions, dict_char=dict_char,
list_char=list_char)
if add_repetitions:
if prepend:
repName = '%s--repetitions' % prepend
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs