On Friday, March 25, 2011 10:00:04 AM UTC-4, Hal Smith wrote: 
>
> As I continue to plug along, following your manual, I keep bumping 
> into web2pyfunctions (I assume) - such as index (), first (), second 
> (), and dict (). It would be nice to have these documented, in 
> something like the UNIX Man pages.

 
index(), first(), and second() are not web2py functions (i.e., they do not 
belong to the framework). Those are just examples of functions you can add 
to your application controllers to produce particular actions -- there's 
nothing special about their names.
 
dict() is actually a Python builtin (it creates a Python dictionary), as 
explained here: http://web2py.com/book/default/chapter/02#dict
 

>  Later, it speaks of request.vars.visitor_name - without explaining 
> what it is, or where it comes from.

 
'request' is one of the four API global objects, listed here: 
http://web2py.com/book/default/chapter/04#API, and explained in detail here: 
http://web2py.com/book/default/chapter/04#request.
 

>
> Does this documentation exist?

 
In general, I highly recommend using the online book (
http://web2py.com/book/) -- it has search functionality and an index.
 
Hope that helps.
 
Anthony

Reply via email to