[GRASS-dev] GRASS 7 raster coding best practices

Yann Chemin yann.chemin at gmail.com
Sun May 4 06:02:44 EDT 2008


OK, if I get it right,

input->required=YES
is the same as:
input->guisection=_("Required")

therefore the second line is useless.
In the same way, is the following identical too?

input->required=NO
is it the same as below?
input->guisection=_("Optional")

Thanks for the links on the other topics,
I will start reading them.

Yann

2008/5/4 Hamish <hamish_b at yahoo.com>:
> Yann Chemin:
>
> > OK, a small misunderstanding here, some small examples.
>  >
>  > input->guisection will create a Tab in the GUI with the name given to
>  > it.
>  >
>  > input->guisection = _("Required");
>  > input->guisection = _("Optional");
>  > input->guisection = _("Set of functions 1");
>  > input->guisection = _("Parameters for output2");
>  >
>  > on the other hand,
>  > input->required=YES
>  > forbids the code to run on empty "input"
>
>
>  yes, the above is correct, just note that this is meaningless, other than
>  to group that option in a tab by that name:
>   input->guisection = _("Required");
>
>  (and thus that is confusing+redundant and shouldn't be used IMHO)
>
>
>
>
>  Hamish
>
>
>
>
>       ____________________________________________________________________________________
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>



-- 
Yann Chemin
International Rice Research Institute
Office: http://www.irri.org/gis
Perso: http://www.freewebs.com/ychemin


More information about the grass-dev mailing list