[GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Martin Landa
Hi, it's seems that currently PyGRASS doesn't support shorten parameters, eg. Module('v.db.addcolumn', map='p5', col='vymera_ha double') File ./u01.py, line 27, in compute Module('v.db.addcolumn', map='p5', col='vymera_ha double') File

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Martin Landa
Hi, 2014-10-22 10:49 GMT+02:00 Martin Landa landa.mar...@gmail.com: it's seems that currently PyGRASS doesn't support shorten parameters, eg. there is also another issue where pyGRASS seems to be too much strict, eg. Module('d.vect', map='p6', type='point', color='purple',

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Pietro
On Wed, Oct 22, 2014 at 10:49 AM, Martin Landa landa.mar...@gmail.com wrote: Hi, it's seems that currently PyGRASS doesn't support shorten parameters, eg. Module('v.db.addcolumn', map='p5', col='vymera_ha double') [cut] grass.pygrass.errors.ParameterError: col is not a valid parameter.

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Pietro
On Wed, Oct 22, 2014 at 11:12 AM, Martin Landa landa.mar...@gmail.com wrote: there is also another issue where pyGRASS seems to be too much strict, eg. Module('d.vect', map='p6', type='point', color='purple', icon='basic/star', size=10) fails with File ./u01.py, line 37, in compute

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Martin Landa
2014-10-22 17:36 GMT+02:00 Pietro peter.z...@gmail.com: Any chance to change this behaviour? Actually I don't like the idea of shorten parameters... :-) So I wont fix this. well, pyGRASS should behave similarly to GRASS parser which allows shorten options. It's not question of personal

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Martin Landa
Hi, 2014-10-22 17:37 GMT+02:00 Pietro peter.z...@gmail.com: [...] This is fixed in grass71, should be backported. are you planning to to this? Martin -- Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa ___ grass-dev mailing list

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Pietro
On Wed, Oct 22, 2014 at 5:40 PM, Martin Landa landa.mar...@gmail.com wrote: 2014-10-22 17:36 GMT+02:00 Pietro peter.z...@gmail.com: Any chance to change this behaviour? Actually I don't like the idea of shorten parameters... :-) So I wont fix this. well, pyGRASS should behave similarly to

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Pietro
On Wed, Oct 22, 2014 at 5:45 PM, Martin Landa landa.mar...@gmail.com wrote: This is fixed in grass71, should be backported. are you planning to to this? Martin Yes, I would like to do it... The main problem are the difference between grass70 and grass71 on the exception... I would like to

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Martin Landa
Hi, 2014-10-22 18:09 GMT+02:00 Pietro peter.z...@gmail.com: If other devs agree on backporting grass.exceptions, then I could do this during the weekend. I would agree with that. Martin -- Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa ___

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Luca Delucchi
On 22 October 2014 18:10, Martin Landa landa.mar...@gmail.com wrote: Hi, Hi, 2014-10-22 18:09 GMT+02:00 Pietro peter.z...@gmail.com: If other devs agree on backporting grass.exceptions, then I could do this during the weekend. I would agree with that. Martin +1 -- Martin Landa *

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Anna Petrášová
On Wed, Oct 22, 2014 at 11:40 AM, Martin Landa landa.mar...@gmail.com wrote: 2014-10-22 17:36 GMT+02:00 Pietro peter.z...@gmail.com: Any chance to change this behaviour? Actually I don't like the idea of shorten parameters... :-) So I wont fix this. well, pyGRASS should behave

Re: [GRASS-dev] pygrass and shorten parameters

2014-10-22 Thread Glynn Clements
Anna Petrášová wrote: Any chance to change this behaviour? Actually I don't like the idea of shorten parameters... :-) So I wont fix this. well, pyGRASS should behave similarly to GRASS parser which allows shorten options. It's not question of personal preferences I would say