[GRASS-SVN] r58448 - grass/trunk/lib/python/pygrass/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 11 15:28:49 PST 2013


Author: lucadelu
Date: 2013-12-11 15:28:49 -0800 (Wed, 11 Dec 2013)
New Revision: 58448

Modified:
   grass/trunk/lib/python/pygrass/vector/table.py
Log:
fix to small bug on dblinks

Modified: grass/trunk/lib/python/pygrass/vector/table.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/table.py	2013-12-11 23:22:40 UTC (rev 58447)
+++ grass/trunk/lib/python/pygrass/vector/table.py	2013-12-11 23:28:49 UTC (rev 58448)
@@ -798,7 +798,7 @@
         if force:
             link = self.by_name(key)
             table = link.table()
-            table.drop()
+            table.drop(force=force)
         if isinstance(key, str):
             key = self.from_name_to_num(key)
         libvect.Vect_map_del_dblink(self.c_mapinfo, key)
@@ -882,7 +882,7 @@
             name = self.name
         used = db_table_in_vector(name)
         if len(used) > 0:
-            warning(_("Deleting table <%s> which is attached to following map(s):") % table)
+            warning(_("Deleting table <%s> which is attached to following map(s):") % name)
             for vect in used:
                 warning("%s" % vect)
             if not force:



More information about the grass-commit mailing list