2006-12-19 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_Options.py (save): Use unicode, not str. svn: r7822
This commit is contained in:
parent
7e88431933
commit
4f8f6c0651
@ -1,3 +1,6 @@
|
||||
2006-12-19 Alex Roitman <shura@gramps-project.org>
|
||||
* src/PluginUtils/_Options.py (save): Use unicode, not str.
|
||||
|
||||
2006-12-18 Alex Roitman <shura@gramps-project.org>
|
||||
* src/PluginUtils/_Options.py (save): Escape special characters.
|
||||
|
||||
|
@ -206,12 +206,12 @@ class OptionListCollection:
|
||||
for list_index in range(len(options[option_name])):
|
||||
f.write(' <listitem number="%d" value="%s"/>\n' % (
|
||||
list_index,
|
||||
escape(str(options[option_name][list_index]))) )
|
||||
escape(unicode(options[option_name][list_index]))) )
|
||||
f.write(' </option>\n')
|
||||
else:
|
||||
f.write(' <option name="%s" value="%s"/>\n' % (
|
||||
escape(option_name),
|
||||
escape(str(options[option_name]))) )
|
||||
escape(unicode(options[option_name]))) )
|
||||
|
||||
self.write_module_common(f,option_list)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user