[GRASS-SVN] r72461 - grass/branches/releasebranch_7_2/temporal/t.info

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


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

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

Modified: grass/branches/releasebranch_7_2/temporal/t.info/t.info.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.info/t.info.py	2018-03-21 11:02:23 UTC (rev 72460)
+++ grass/branches/releasebranch_7_2/temporal/t.info/t.info.py	2018-03-21 11:02:52 UTC (rev 72461)
@@ -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