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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 23 02:43:30 PST 2012


Author: zarch
Date: 2012-12-23 02:43:29 -0800 (Sun, 23 Dec 2012)
New Revision: 54369

Modified:
   grass/trunk/lib/python/pygrass/vector/__init__.py
Log:
Fix write => writable

Modified: grass/trunk/lib/python/pygrass/vector/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/__init__.py	2012-12-22 23:27:15 UTC (rev 54368)
+++ grass/trunk/lib/python/pygrass/vector/__init__.py	2012-12-23 10:43:29 UTC (rev 54369)
@@ -125,7 +125,9 @@
         return GV_TYPE[ftype]['obj'](v_id=v_id,
                                      c_mapinfo=self.c_mapinfo,
                                      c_points=c_points,
-                                     c_cats=c_cats)
+                                     c_cats=c_cats,
+                                     table=self.table,
+                                     writable=self.writable)
 
     @must_be_open
     def rewind(self):
@@ -315,7 +317,7 @@
             if _GEOOBJ[vtype] is not None:
                 return (_GEOOBJ[vtype](v_id=indx, c_mapinfo=self.c_mapinfo,
                                        table=self.table,
-                                       writable=self.write)
+                                       writable=self.writable)
                         for indx in xrange(1, self.number_of(vtype) + 1))
         else:
             keys = "', '".join(sorted(_GEOOBJ.keys()))
@@ -386,7 +388,7 @@
                                              c_points=c_points,
                                              c_cats=c_cats,
                                              table=self.table,
-                                             write=self.write)
+                                             writable=self.writable)
         else:
             raise ValueError('The index must be >0, %r given.' % feature_id)
 



More information about the grass-commit mailing list