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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 24 04:59:50 PST 2012


Author: zarch
Date: 2012-12-24 04:59:47 -0800 (Mon, 24 Dec 2012)
New Revision: 54381

Modified:
   grass/trunk/lib/python/pygrass/vector/abstract.py
Log:
Close db-connection when the vector map is closed

Modified: grass/trunk/lib/python/pygrass/vector/abstract.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/abstract.py	2012-12-24 12:59:36 UTC (rev 54380)
+++ grass/trunk/lib/python/pygrass/vector/abstract.py	2012-12-24 12:59:47 UTC (rev 54381)
@@ -275,6 +275,7 @@
             return self.dblinks.by_number(1).table()
 
     def close(self):
+        self.table.conn.close()
         if self.is_open():
             if libvect.Vect_close(self.c_mapinfo) != 0:
                 str_err = 'Error when trying to close the map with Vect_close'



More information about the grass-commit mailing list