[GRASS-SVN] r72444 - grass/trunk/temporal/t.info

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 20 13:11:05 PDT 2018


Author: sbl
Date: 2018-03-20 13:11:05 -0700 (Tue, 20 Mar 2018)
New Revision: 72444

Modified:
   grass/trunk/temporal/t.info/t.info.py
Log:
t.info: activate history printing, see #3322

Modified: grass/trunk/temporal/t.info/t.info.py
===================================================================
--- grass/trunk/temporal/t.info/t.info.py	2018-03-20 20:10:29 UTC (rev 72443)
+++ grass/trunk/temporal/t.info/t.info.py	2018-03-20 20:11:05 UTC (rev 72444)
@@ -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