what?  I'm using the class attribute, which doesn't have a dash in it.  all 
I'm trying to do is put a separator in the pulled down submenu.

On Wednesday, April 10, 2019 at 12:33:34 PM UTC-4, villas wrote:
>
> See this section of book...
>
>
> http://www.web2py.com/books/default/chapter/29/05/the-views?search=data-#HTML-helpers
>
> DIV('text', _data-role='collapsible')
>>
>> will not work because "_data-role" includes a hyphen, which will produce 
>> a Python syntax error.
>>
>
> Check the solutions suggested.
>
>
>
>
> On Wednesday, 10 April 2019 03:23:47 UTC+1, lucas wrote:
>>
>> hey all,
>>
>> I have the following code under menu.py under 2.18.5:
>>
>> response.menu = [
>>     (T('Lectures'), False, URL('default', 'subjects')),
>>     (T('Students'), False, URL('default', 'student')),
>>     (T('Professors'), False, URL('default', 'professor')),
>>     (T('Blog'), False, URL('default', 'blog')),
>>     (T('News'), False, URL('default', 'news'))
>> ]
>>
>> if auth.is_logged_in():
>>     response.menu.insert(1, (T('JumpTo:'), False, None, []))
>>     response.menu[1][3].append((T('Classes'), False, None))
>>     response.menu[1][3].append(LI(_class="dropdown-divider"))
>>     response.menu[1][3].append((T('Question Pool'), False, None))
>>
>> web2py is fine until I add the 
>> "response.menu[1][3].append(LI(_class="dropdown-divider"))" line in which 
>> case the exception is: "IndexError: list index out of range".  I can not 
>> for the life of me figure out why all the other appends, the appends of the 
>> tuples work but the append with the LI bugs like hell.
>>
>> thanx in advance, Lucas
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to