[GRASS-SVN] r53918 - grass/branches/develbranch_6/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 19 09:11:16 PST 2012
Author: martinl
Date: 2012-11-19 09:11:16 -0800 (Mon, 19 Nov 2012)
New Revision: 53918
Modified:
grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py
Log:
gmodeler: encode also model/variables name
(merge r53917 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py 2012-11-19 17:04:52 UTC (rev 53917)
+++ grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py 2012-11-19 17:11:16 UTC (rev 53918)
@@ -1806,7 +1806,7 @@
self.fd.write('%s<properties>\n' % (' ' * self.indent))
self.indent += 4
if self.properties['name']:
- self.fd.write('%s<name>%s</name>\n' % (' ' * self.indent, self.properties['name']))
+ self.fd.write('%s<name>%s</name>\n' % (' ' * self.indent, EncodeString(self.properties['name'])))
if self.properties['description']:
self.fd.write('%s<description>%s</description>\n' % (' ' * self.indent,
utils.EncodeString(self.properties['description'])))
@@ -1828,11 +1828,11 @@
self.indent += 4
for name, values in self.variables.iteritems():
self.fd.write('%s<variable name="%s" type="%s">\n' % \
- (' ' * self.indent, name, values['type']))
+ (' ' * self.indent, EncodeString(name), values['type']))
self.indent += 4
if 'value' in values:
self.fd.write('%s<value>%s</value>\n' % \
- (' ' * self.indent, values['value']))
+ (' ' * self.indent, EncodeString(values['value'])))
if 'description' in values:
self.fd.write('%s<description>%s</description>\n' % \
(' ' * self.indent, EncodeString(values['description'])))
@@ -2008,7 +2008,7 @@
#
#%s
""" % ('#' * 79,
- properties['name'],
+ EncodeString(properties['name']),
EncodeString(properties['author']),
EncodeString('\n# '.join(properties['description'].splitlines())),
time.asctime(),
More information about the grass-commit
mailing list