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