[GRASS-dev] Re: [GRASSGUI] Re: [grass-addons] r659 -
landa.martin at gmail.com
Mon May 21 07:31:45 EDT 2007
sorry I was some days out of the office, anyway thanks for fixing it!
And also thanks for explanation.
2007/5/18, Michael Barton <michael.barton at asu.edu>:
> On 5/17/07 6:30 PM, "Glynn Clements" <glynn at gclements.plus.com> wrote:
> > Michael Barton wrote:
> >>>> This is helpful. But I will wait to make any changes until this is worked
> >>>> out--since it looks like we will also need to redefine the original command
> >>>> string (i.e., to make it a proper list) prior to calling cmd.Command.
> >>> I've fixed cmd.Command itself and all of the straightforward uses.
> >> So we'll need to send it a list consisting of [command+flags, option=val,
> >> option=val,...]. Right?
> > Example:
> > dbDescribe = cmd.Command (cmd = ["db.describe", "-c",
> > "table=%s" % self.parent.tablename,
> > "driver=%s" % self.parent.driver,
> > "database=%s" % self.parent.database])
> Thanks. This is a good example.
> >>> AFAICT, GUI.parseCommand() is probably still broken:
> >>> menuform.py:1075: cmdlst = cmd.split(' ')
> >> This actually might be fine. It looks like it is only checking to see if
> >> there is a space in the command string and returning an error message is
> >> there is. It making sure that the only thing being passed on to menuform is
> >> a simple GRASS command without arguments.
> > Ah; okay.
> Michael Barton, Professor of Anthropology
> School of Human Evolution & Social Change
> Center for Social Dynamics & Complexity
> Arizona State University
> phone: 480-965-6213
> fax: 480-965-7671
> www: http://www.public.asu.edu/~cmbarton
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev