I am new to web2py, as I mentioned in another post, and I am wondering where
to find in-depth documentation.
Let me give you an example. I wanted to do a form that does not correspond
to a db table, and that has several input fields. I also wanted to render
it in a table.
In the English web2py book, all the examples are with forms which (a) either
have only one input field, or (b) are derived more or less directly from db
tables. I could not find clear documentation anywhere on how to cook up my
own funny form. In the end, I understood, or so I think, and I wrote
something like
form = FORM(TABLE(
TR(TD('City'), TH(INPUT(_name='city', requires=IS_NOT_EMPTY()))),
TR(TD('County'), TH(INPUT(_name='county'))),
INPUT(_value='Add', _type='submit', _action=URL('add'))))
I have no idea whether this is the best way -- I would have preferred to
leave the HTML tags in the view, rather than in the controller, but then I
could find no explanation on how to access the components of a form in a
view.
Now, the problem is not so much in this form. The problem is, where is
documentation that is more in-depth than the overview given in the book? I
ran into this problem not only with forms, but with database fields (e.g.,
default=now as cited in the book does not work for datetime fields), with
the role of controllers, with the way in which models are loaded...
When _you_ need this information, where do you find it? What's the secret
source of knowledge I am missing? :-)
Luca