>
> links=[lambda row: A('View',_href=URL('view',args=[db.products,row.id]))],
>

First, note that the URL function produces a string, so putting db.products 
in args is equivalent to str(db.products), which will result in just 
"products".
 

> def view(table,id):
>     return dict()
>

As noted in the book, any function in a controller that accepts arguments 
is *not* exposed as an action accessible via URL (in other words, it is a 
private function). To access args passed via a URL (i.e., the part of the 
URL path that comes after /app/controller/function), you must use 
request.args (i.e., request.args(0) is the first argument, etc.).

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to