[GRASS-dev] grass.py: vector_db

Martin Landa landa.martin at gmail.com
Fri Dec 19 18:23:05 EST 2008


Hi,

maybe we could change interfaces of vector_db. Now the function
returns list of the list, e.g.

[['1', 'ar_1', 'cat', 'grass', 'pg'], ['1', 'ar_2', 'cat', 'grass', 'pg']]

I suggest to return a dictionary, e.g.

{ 1 : { 'table' : 'ar_1', 'key': 'cat', 'database': 'grass', 'driver' : 'pg' },
 2 : { 'table' : 'ar_2', 'key': 'cat', 'database': 'grass', 'driver' : 'pg' } }

If no objections I will apply this change and update all scripts in g7.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list