I'm writing an application for managing sites and people in this sites with
different roles.
In my menu.py I have, for example this code
if auth.has_membership('total-manager') |
auth.has_membership('pordenone-manager'):
response.menu.append(
('Sede Pordenone', False, None,
[
(T('Scheduler'), URL()==URL('default', 'sched'),
URL('default','sched',args='2')),
(T('Studenti'), URL()==URL('default', 'elenco_studenti'),
URL('default','elenco_studenti',args='2')),
(T('Docenti'), URL()==URL('default', 'elenco_docenti'),
URL('default','elenco_docenti',args='2')),
]
)
)
But with the program the manager can create other sites. How to
dynamically, inside the code, add the menu for the new sites created? Can I
have examples?
Thank you
--
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.