[GRASS-SVN] r55884 - in grass/trunk/gui/wxpython: . core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 18 02:45:54 PDT 2013
Author: wenzeslaus
Date: 2013-04-18 02:45:54 -0700 (Thu, 18 Apr 2013)
New Revision: 55884
Modified:
grass/trunk/gui/wxpython/Makefile
grass/trunk/gui/wxpython/core/menutree.py
Log:
wxGUI/xml: mark generated file, fix indentation
Modified: grass/trunk/gui/wxpython/Makefile
===================================================================
--- grass/trunk/gui/wxpython/Makefile 2013-04-18 09:09:57 UTC (rev 55883)
+++ grass/trunk/gui/wxpython/Makefile 2013-04-18 09:45:54 UTC (rev 55884)
@@ -27,7 +27,8 @@
$(INSTALL_DATA) $< $@
menustrings.py: core/menutree.py $(ETCDIR)/xml/menudata.xml $(ETCDIR)/xml/menudata_modeler.xml $(ETCDIR)/xml/menudata_psmap.xml
- $(call run_grass,$(PYTHON) $< > $@)
+ @echo "# This is a generated file.\n" > $@
+ $(call run_grass,$(PYTHON) $< >> $@)
$(call run_grass,$(PYTHON) $< "modeler" >> $@)
$(call run_grass,$(PYTHON) $< "psmap" >> $@)
Modified: grass/trunk/gui/wxpython/core/menutree.py
===================================================================
--- grass/trunk/gui/wxpython/core/menutree.py 2013-04-18 09:09:57 UTC (rev 55883)
+++ grass/trunk/gui/wxpython/core/menutree.py 2013-04-18 09:45:54 UTC (rev 55884)
@@ -166,10 +166,10 @@
def printStrings(node, fh):
if node.label:
- fh.write(' _(%r),\n' % str(node.label))
+ fh.write(' _(%r),\n' % str(node.label))
if node.data:
if 'description' in node.data and node.data['description']:
- fh.write(' _(%r),\n' % str(node.data['description']))
+ fh.write(' _(%r),\n' % str(node.data['description']))
for child in node.children:
printStrings(node=child, fh=fh)
More information about the grass-commit
mailing list