>
> 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)
and still have problems but another error:
Traceback (most recent call last):
File "/home/zerooo123/web2py/gluon/restricted.py", line 205, in restricted
exec ccode in environment
File "/home/zerooo123/web2py/applications/orhei/controllers/default.py", line
185, in <module>
File "/home/zerooo123/web2py/gluon/globals.py", line 173, in <lambda>
self._caller = lambda f: f()
File "/home/zerooo123/web2py/applications/orhei/controllers/default.py", line
61, in menu
arg = request.args[0]
TypeError: 'NoneType' object is not subscriptable
the code where a generate link is:
<li><a
href="+URL('default','menu',args=[b.id])+">"+str(b['title_'+lang])+"</a><ul>"+tree_side(tree,b.id)+"</ul></li>