[GRASS-SVN] r72460 - grass/branches/releasebranch_7_4/temporal/t.info

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 21 04:02:23 PDT 2018


Author: sbl
Date: 2018-03-21 04:02:23 -0700 (Wed, 21 Mar 2018)
New Revision: 72460

Modified:
   grass/branches/releasebranch_7_4/temporal/t.info/t.info.py
Log:
t.info: activate -h flag (merge from trunk r72444); see #3322

Modified: grass/branches/releasebranch_7_4/temporal/t.info/t.info.py
===================================================================
--- grass/branches/releasebranch_7_4/temporal/t.info/t.info.py	2018-03-21 09:58:11 UTC (rev 72459)
+++ grass/branches/releasebranch_7_4/temporal/t.info/t.info.py	2018-03-21 11:02:23 UTC (rev 72460)
@@ -77,7 +77,7 @@
 
     rows = tgis.get_tgis_metadata(dbif)
 
-    if system and not shellstyle:
+    if system and not shellstyle and not history:
         #      0123456789012345678901234567890
         print(" +------------------- Temporal DBMI backend information ----------------------+")
         print(" | DBMI Python interface:...... " + str(dbif.get_dbmi().__name__))
@@ -90,7 +90,7 @@
                 print(" | %s .......... %s"%(row[0], row[1]))
         print(" +----------------------------------------------------------------------------+")
         return
-    elif system:
+    elif system and not history:
         print("dbmi_python_interface=\'" + str(dbif.get_dbmi().__name__) + "\'")
         print("dbmi_string=\'" + str(tgis.get_tgis_database_string()) + "\'")
         print("sql_template_path=\'" + str(tgis.get_sql_template_path()) + "\'")
@@ -114,7 +114,7 @@
 
     dataset.select(dbif)
 
-    if history == True and type in ["strds", "stvds", "str3ds"]:
+    if history == True and type_ in ["strds", "stvds", "str3ds"]:
         dataset.print_history()
         return
 



More information about the grass-commit mailing list