Your error has nothing to do with using append -- I was just suggesting the alternative as cleaner/simpler code. Please look at the code in layout.html that is actually throwing the exception and you will see that code does not expect any of the menu items to be a single HTML helper -- it expects lists/tuples with 3 values. Either change your menu or change the code in the layout.
Anthony On Thursday, April 11, 2019 at 8:18:00 PM UTC-4, lucas wrote: > > ok, i tried it without the appends, instead just direct: > > response.menu[1][3] = [ > (T('Dashboard'), False, URL('main', 'students')), > A('', _class="divider"), > (T('Assessments'), False, None), > (T('History'), False, None), > (T('Join a Class'), False, None) > ] > > and it still bugs unless the A tag is commented out, then it is fine > again. and i agree with you that its expecting a particular structure, but > i've used the separator inserts in the past and they've worked fine and i > thought the code allowed for the separators in the present form also. > -- 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/d/optout.