[GRASS-SVN] r55518 - in grass/trunk/temporal: t.rast.univar t.rast3d.univar t.register t.vect.db.select

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 25 12:53:43 PDT 2013


Author: neteler
Date: 2013-03-25 12:53:42 -0700 (Mon, 25 Mar 2013)
New Revision: 55518

Modified:
   grass/trunk/temporal/t.rast.univar/t.rast.univar.py
   grass/trunk/temporal/t.rast3d.univar/t.rast3d.univar.py
   grass/trunk/temporal/t.register/t.register.py
   grass/trunk/temporal/t.vect.db.select/t.vect.db.select.py
Log:
temporal modules: standardize field separator parameter

Modified: grass/trunk/temporal/t.rast.univar/t.rast.univar.py
===================================================================
--- grass/trunk/temporal/t.rast.univar/t.rast.univar.py	2013-03-25 14:07:55 UTC (rev 55517)
+++ grass/trunk/temporal/t.rast.univar/t.rast.univar.py	2013-03-25 19:53:42 UTC (rev 55518)
@@ -27,12 +27,8 @@
 #%option G_OPT_T_WHERE
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%flag
@@ -58,7 +54,7 @@
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    fs = options["fs"]
+    fs = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()

Modified: grass/trunk/temporal/t.rast3d.univar/t.rast3d.univar.py
===================================================================
--- grass/trunk/temporal/t.rast3d.univar/t.rast3d.univar.py	2013-03-25 14:07:55 UTC (rev 55517)
+++ grass/trunk/temporal/t.rast3d.univar/t.rast3d.univar.py	2013-03-25 19:53:42 UTC (rev 55518)
@@ -27,12 +27,8 @@
 #%option G_OPT_T_WHERE
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%flag
@@ -58,7 +54,7 @@
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    fs = options["fs"]
+    fs = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()

Modified: grass/trunk/temporal/t.register/t.register.py
===================================================================
--- grass/trunk/temporal/t.register/t.register.py	2013-03-25 14:07:55 UTC (rev 55517)
+++ grass/trunk/temporal/t.register/t.register.py	2013-03-25 19:53:42 UTC (rev 55518)
@@ -80,12 +80,8 @@
 #% guisection: Time & Date
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character of the input file
-#% required: no
-#% answer: |
 #% guisection: Input
 #%end
 
@@ -108,7 +104,7 @@
     maps = options["maps"]
     type = options["type"]
     file = options["file"]
-    fs = options["fs"]
+    fs = options["separator"]
     start = options["start"]
     end = options["end"]
     unit = options["unit"]

Modified: grass/trunk/temporal/t.vect.db.select/t.vect.db.select.py
===================================================================
--- grass/trunk/temporal/t.vect.db.select/t.vect.db.select.py	2013-03-25 14:07:55 UTC (rev 55517)
+++ grass/trunk/temporal/t.vect.db.select/t.vect.db.select.py	2013-03-25 19:53:42 UTC (rev 55518)
@@ -29,12 +29,8 @@
 #%option G_OPT_DB_COLUMNS
 #%end
 
-#%option
-#% key: separator
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%option G_OPT_V_FIELD



More information about the grass-commit mailing list