>
> i think the problem is in request.args so i tried smth like this:
>>
>   
>     arg = request.args[0]    
>     rows = db(db.articles.reference == 
> arg).select(*articles,limitby=(0,30))
>     return dict(row=db.menu[arg], rows = rows)
>

In general, I don't think request.args should be None -- even when there 
are no args, it should be an empty List object (which is a special callable 
list). When there are no args, request.args[0] will raise an exception, but 
request.args(0) should simply return None. Do you happen to have 
routes_apps_raw set in your routes.py file? In that case, request.args will 
be None, and the unparsed args will be stored in request.raw_args.
 

>  <li><a href="+URL('default','menu',args=[b.id
> ])+">"+str(b['title_'+lang])+"</a><ul>"+tree_side(tree,b.id)+"</ul></li>
>

Assuming you're building the link in a controller, it might be easier to 
use HTML helpers:

LI(A(str(b['title_' + lang]), _href=URL('default', 'menu', args=b.id)),
   UL(tree_side(tree, b.id)))

Anthony

Reply via email to