Browse Source

temporal library: eval support for t.info, fixed https://trac.osgeo.org/grass/ticket/3264

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73442 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 6 years ago
parent
commit
879c56227b
2 changed files with 5 additions and 5 deletions
  1. 2 2
      lib/python/temporal/base.py
  2. 3 3
      lib/python/temporal/temporal_extent.py

+ 2 - 2
lib/python/temporal/base.py

@@ -786,7 +786,7 @@ class DatasetBase(SQLDatabaseInterface):
             print("layer=" + str(self.get_layer()))
         print("creator=" + str(self.get_creator()))
         print("temporal_type=" + str(self.get_ttype()))
-        print("creation_time=" + str(self.get_ctime()))
+        print("creation_time='{}'".format(str(self.get_ctime())))
 
 ###############################################################################
 
@@ -920,7 +920,7 @@ class STDSBase(DatasetBase):
     def print_shell_info(self):
         """Print information about this class in shell style"""
         DatasetBase.print_shell_info(self)
-        print("modification_time=" + str(self.get_mtime()))
+        print("modification_time='{}'".format(str(self.get_mtime())))
         print("semantic_type=" + str(self.get_semantic_type()))
 
 ###############################################################################

+ 3 - 3
lib/python/temporal/temporal_extent.py

@@ -1038,8 +1038,8 @@ class TemporalExtent(SQLDatabaseInterface):
 
     def print_shell_info(self):
         """Print information about this class in shell style"""
-        print("start_time=" + str(self.get_start_time()))
-        print("end_time=" + str(self.get_end_time()))
+        print("start_time='{}'".format(str(self.get_start_time())))
+        print("end_time='{}'".format(str(self.get_end_time())))
 
 ###############################################################################
 
@@ -1188,7 +1188,7 @@ class STDSAbsoluteTime(AbsoluteTemporalExtent):
     def print_shell_info(self):
         """Print information about this class in shell style"""
         AbsoluteTemporalExtent.print_shell_info(self)
-        print("granularity=" + str(self.get_granularity()))
+        print("granularity='{}'".format(str(self.get_granularity())))
         print("map_time=" + str(self.get_map_time()))
 
 ###############################################################################