please post the complete traceback.

On Feb 11, 12:08 pm, w2padawan <web2py.n...@gmail.com> wrote:
> I changed it as you say but now gives me:
>
>     ValueError: need more than 1 value to unpack
>
> ----------------------------------------
> CONTROLLER
> ==================
> def catree():
>     # query
>     supercategorias =
> db(db.t_categoria.supercategoria==None).select(db.t_categoria.id,db.t_categ 
> oria.nombre)
>
>     # creating the menu
>     catree = [['testmenu',False,None,['testsubmenu',False,None]]]
>
>     # identifying and building submenus
>     for supercat in supercategorias:
>         catree.append([supercat.nombre,False,'link'])
>         cats = 
> db(db.t_categoria.supercategoria==supercat.id).select(db.t_categoria.nombre 
> ,db.t_categoria.id)
>         for cat in cats:
>             catree.append([cat.nombre,False,'link'])
>
>     return dict(catree=catree)
>
> what I'm still missing?

Reply via email to