Very good trick that I had forgotten Mr.Freeze!!!
Massimo, (all), let me please do some meditation...
Even though I really think web2py its by far the best and rising python
framework outhere, many times it comes to my mind one word: "tricky".
Let me explain, tricky (in the good sense), because there are a lot of
things that we should (or need) to do with some hidden snippet somebody
did lost among thousands of group mails in the past.
I usually tick as favorite all the useful snippet mails, and really love
web2pyslices, but... it seems not sufficient for me (as newby programmer)...
The fact is that I don't really know the cause (maybe the backward
compatibility, rapid raising?) neither solution (maybe more planning,
documentation?).
Just a reflection, What do you think about?,
Alex F
El 15/12/2009 23:17, mr.freeze escribió:
> element and elements take any combination of args and keywords and
> cycle through the form components looking for match(es)
>
> form.element('input',_type='text')# grabs the first text input
> form.elements('input',_type='text')# grabs all text inputs
>
> form.elements('input','textarea') # grabs all inputs and textareas
>
> On Dec 15, 2:02 pm, waTR<[email protected]> wrote:
>
>> Is there a definition of all possible arguments for form.element and
>> some examples somewhere?
>>
>> I am mainly looking to use it with SQLForm and factory().
>> Specifically, I want to create a form with SQLForm& factory, and then
>> modify some of the elements to be things other than text boxes, i.e.
>> to change some to drop-downs with some choices, and others to radio
>> buttons, etc.
>>
>> Is the above possible? And with what element argument?
>>
> --
>
> You received this message because you are subscribed to the Google Groups
> "web2py-users" 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.
>
>
>
>
--
Alejandro Fanjul Fdez.
[email protected]
www.mhproject.org
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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.