[GRASS-SVN] r58451 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 11 23:49:59 PST 2013
Author: lucadelu
Date: 2013-12-11 23:49:59 -0800 (Wed, 11 Dec 2013)
New Revision: 58451
Modified:
grass/trunk/lib/python/pygrass/vector/table.py
Log:
add default values to Link object
Modified: grass/trunk/lib/python/pygrass/vector/table.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/table.py 2013-12-11 23:41:05 UTC (rev 58450)
+++ grass/trunk/lib/python/pygrass/vector/table.py 2013-12-12 07:49:59 UTC (rev 58451)
@@ -603,8 +603,9 @@
driver = property(fget=_get_driver, fset=_set_driver)
- def __init__(self, layer=1, name=None, table=None, key=None,
- database=None, driver=None, c_fieldinfo=None):
+ def __init__(self, layer=1, name=None, table=None, key='cat',
+ database='$GISDBASE/$LOCATION_NAME/PERMANENT/sqlite/sqlite.db',
+ driver='sqlite', c_fieldinfo=None):
if c_fieldinfo is not None:
self.c_fieldinfo = c_fieldinfo
else:
More information about the grass-commit
mailing list