On Friday, October 21, 2011 3:31:22 AM UTC-4, Gwayne aka Mike Veltman wrote:
>
>
> Thanks Annet,
>
> Yes I was thinking about it. But that means that I have to remove the 
> menu.py 
> out of the models and place it in each view individually.
>
How are you doing it now? Typically, menu.py simply defines response.menu. 
You then display the menu in a view (typically layout.html) via:

{{=MENU(response.menu)}}

Making the above line conditional within the view (again, presumably 
layout.html) shouldn't have any impact on menu.py or where you define 
response.menu.

Anthony 

Reply via email to