> ul = menu.element("ul")
> items = ul.elements("li")
> for item in items:
>     item.atttributes["_id"] = <new id>
>
> Won't work -- the MENU() helper doesn't generate the UL's and LI's until 
it is serialized. Also, note that .element('ul') returns only the first UL 
element. To get all the LI elements, all you have to do is 
menu.elements('li') (though, again, that won't really work in this case).

Anthony

-- 

--- 
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/groups/opt_out.


Reply via email to