Not really but some equivalent shortcuts:

form[0][0][0] = "Foo"

or

form[0][0]['value'] = "Foo"

or

textarea=TEXTAREA(_name="text", _cols="80", _rows="10",
requires=IS_NOT_EMPTY())
form = FORM(FIELDSET(textarea), INPUT(_type="submit"))
if form.accepts(....):
     textarea['value']='Foo'

Massimo


On Dec 22, 7:17 am, Stefan Scholl <[email protected]> wrote:
> This form:
>
> form = FORM(FIELDSET(TEXTAREA(_name="text", _cols="80", _rows="10",
> requires=IS_NOT_EMPTY())), INPUT(_type="submit"))
>
> After!(!) accepting the form I want to change the value of the
> TEXTAREA. I came up with the following:
> form.components[0].components[0].components[0] = "Foo"
>
> This looks a bit ugly, but it works. I've browsed the documentation
> and source and all I found was the list "components".
>
> First component of FORM is FIELDSET, first of this is TEXTAREA and its
> value is the first component.
>
> Is there a better way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to