[GRASS-SVN] r56889 - grass/trunk/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 23 12:20:15 PDT 2013


Author: zarch
Date: 2013-06-23 12:20:15 -0700 (Sun, 23 Jun 2013)
New Revision: 56889

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/parameter.py
   grass/trunk/lib/python/pygrass/modules/interface/read.py
Log:
Fix parameter with file.

Modified: grass/trunk/lib/python/pygrass/modules/interface/parameter.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/parameter.py	2013-06-23 19:13:27 UTC (rev 56888)
+++ grass/trunk/lib/python/pygrass/modules/interface/parameter.py	2013-06-23 19:20:15 UTC (rev 56889)
@@ -70,7 +70,7 @@
         # gisprompt
         #
         if 'gisprompt' in diz:
-            self.type = diz['gisprompt']['prompt']
+            self.typedesc = diz['gisprompt']['prompt']
             self.input = False if diz['gisprompt']['age'] == 'new' else True
         else:
             self.input = True

Modified: grass/trunk/lib/python/pygrass/modules/interface/read.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/read.py	2013-06-23 19:13:27 UTC (rev 56888)
+++ grass/trunk/lib/python/pygrass/modules/interface/read.py	2013-06-23 19:20:15 UTC (rev 56889)
@@ -42,6 +42,7 @@
     'integer': int,
     'float': float,
     'double': float,
+    'file': str,
     'all': lambda x: x,
 }
 



More information about the grass-commit mailing list