فهرست منبع

Fix parameter with file.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56889 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 سال پیش
والد
کامیت
5f55023a14
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      lib/python/pygrass/modules/interface/parameter.py
  2. 1 0
      lib/python/pygrass/modules/interface/read.py

+ 1 - 1
lib/python/pygrass/modules/interface/parameter.py

@@ -70,7 +70,7 @@ class Parameter(object):
         # gisprompt
         # gisprompt
         #
         #
         if 'gisprompt' in diz:
         if 'gisprompt' in diz:
-            self.type = diz['gisprompt']['prompt']
+            self.typedesc = diz['gisprompt']['prompt']
             self.input = False if diz['gisprompt']['age'] == 'new' else True
             self.input = False if diz['gisprompt']['age'] == 'new' else True
         else:
         else:
             self.input = True
             self.input = True

+ 1 - 0
lib/python/pygrass/modules/interface/read.py

@@ -42,6 +42,7 @@ GETTYPE = {
     'integer': int,
     'integer': int,
     'float': float,
     'float': float,
     'double': float,
     'double': float,
+    'file': str,
     'all': lambda x: x,
     'all': lambda x: x,
 }
 }