thanks Massimo and phyo!

no idea why but after trying Massimos latest code i get same error

ValueError: too many values to unpack

this is whats in the ticket

if response.menu:
response.write('\n      <ul>\n     ',escape=False)
for name,active,link in response.menu:
response.write('\n      <li ',escape=False)
if active:
response.write('id="nav-active"',escape=False)
pass
response.write('><a href="',escape=False)
response.write(link)
response.write('">',escape=False)
response.write(name)
response.write('</a></li>\n       ',escape=False)
pass
response.write('\n     </ul>\n\n   ',escape=False)
pass

may be this stupid question of mine will solve the error

is this what goes in the view?

{{for head in response.menu:
   print A(head[0],_href=head[2])}}
{{for item in head[3]:
    print '-',A(item[0],_href=item[2])}}

or am i putting {{}} in wrong places?

thanks again mates this is really helping me
and hopefully a few other newbies also!!

yeah I been getting some nice layouts and menus in web2py from some
cool css sites.
applied them to the first generated menu i made. hope to do same with
this one with headers.
checked openwebdesign before and its a sweet place!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to