[GRASS-SVN] r48909 - grass/trunk/gui/wxpython/gui_modules

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


Author: martinl
Date: 2011-10-22 09:12:56 -0700 (Sat, 22 Oct 2011)
New Revision: 48909

Modified:
   grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: encode model properties (desc and user)
	       (merge r48908 from devbr6)


Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-10-22 16:09:51 UTC (rev 48908)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py	2011-10-22 16:12:56 UTC (rev 48909)
@@ -3111,9 +3111,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