[GRASS-SVN] r48908 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 22 12:09:51 EDT 2011


Author: martinl
Date: 2011-10-22 09:09:51 -0700 (Sat, 22 Oct 2011)
New Revision: 48908

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: encode model properties (desc and user)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-22 10:33:50 UTC (rev 48907)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-22 16:09:51 UTC (rev 48908)
@@ -3115,9 +3115,11 @@
         if self.properties['name']:
             self.fd.write('%s<name>%s</name>\n' % (' ' * self.indent, self.properties['name']))
         if self.properties['description']:
-            self.fd.write('%s<description>%s</description>\n' % (' ' * self.indent, self.properties['description']))
+            self.fd.write('%s<description>%s</description>\n' % (' ' * self.indent,
+                                                                 utils.EncodeString(self.properties['description'])))
         if self.properties['author']:
-            self.fd.write('%s<author>%s</author>\n' % (' ' * self.indent, self.properties['author']))
+            self.fd.write('%s<author>%s</author>\n' % (' ' * self.indent,
+                                                       utils.EncodeString(self.properties['author'])))
         
         if 'overwrite' in self.properties and \
                 self.properties['overwrite']:



More information about the grass-commit mailing list