[GRASS-SVN] r48325 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 16 15:00:16 EDT 2011


Author: neteler
Date: 2011-09-16 12:00:16 -0700 (Fri, 16 Sep 2011)
New Revision: 48325

Modified:
   grass/trunk/lib/python/tgis_abstract_datasets.py
   grass/trunk/lib/python/tgis_base.py
Log:
typos fixed

Modified: grass/trunk/lib/python/tgis_abstract_datasets.py
===================================================================
--- grass/trunk/lib/python/tgis_abstract_datasets.py	2011-09-16 12:01:25 UTC (rev 48324)
+++ grass/trunk/lib/python/tgis_abstract_datasets.py	2011-09-16 19:00:16 UTC (rev 48325)
@@ -331,7 +331,7 @@
             self.set_time_to_relative()
             self.relative_time.set_granularity(granularity)
         else:
-            core.fatal("Unkown temporal type \"" + temporal_type + "\"")
+            core.fatal("Unknown temporal type \"" + temporal_type + "\"")
 
         self.base.set_semantic_type(semantic_type)
         self.metadata.set_title(title)
@@ -397,7 +397,7 @@
         #print "STDS register table", stds_register_table
 
         if stds_mapset != map_mapset:
-            core.fatal("You can only register maps from the same mapset")
+            core.fatal("Only maps from the same mapset can be registered")
 
         # Check if map is already registred
         if stds_register_table:
@@ -508,7 +508,7 @@
         if map.is_in_db() == False:
             core.fatal("Unable to find map <" + map.get_id() + "> in temporal database")
 
-        core.verbose("Unregister " + map.get_type() + " map: " + map.get_id() + " from space time " + map.get_type() + " dataset <" + self.get_id() + ">")
+        core.info("Unregister " + map.get_type() + " map: " + map.get_id())
 
         # First select all data from the database
         map.select()
@@ -543,5 +543,3 @@
             self.base.connect()
             self.base.cursor.execute(sql, (map_id,))
             self.base.close()
-
-        return True
\ No newline at end of file

Modified: grass/trunk/lib/python/tgis_base.py
===================================================================
--- grass/trunk/lib/python/tgis_base.py	2011-09-16 12:01:25 UTC (rev 48324)
+++ grass/trunk/lib/python/tgis_base.py	2011-09-16 19:00:16 UTC (rev 48325)
@@ -204,11 +204,11 @@
 	self.set_semantic_type(semantic_type)
 
     def set_semantic_type(self, semantic_type):
-	"""Set the sematnic type of the space time dataset"""
+	"""Set the semantic type of the space time dataset"""
 	self.D["semantic_type"] = semantic_type
 
     def get_semantic_type(self):
-	"""Get the semantic_type of the space time dataset
+	"""Get the semantic type of the space time dataset
 	   @return None if not found"""
 	if self.D.has_key("semantic_type"):
 	    return self.D["semantic_type"]



More information about the grass-commit mailing list