On Wednesday, November 16, 2011 12:50:18 AM UTC-5, Viren Patel wrote:
>
> Hi,
>
> We can directly find and change in tools.py
> Still not clear in which file to put the code for SPAN helper object so 
> that we do not need to modify tools.py
>

Assuming auth.navbar() is included in your layout.html so it appears on 
every page, you want the function available on all requests, so either in a 
model file, or in a module.
 

> Also can you provide with exact snippet of lines to edit the navbar for | 
> and [ ]
>

Well, as already shown, the following will remove the brackets:

navbar = auth.navbar()
del navbar[0], navbar[-1]  # no more brackets

If you want to do something with the pipe characters, they are every other 
component in the navbar, but the number of them depends on which actions 
are enabled (and therefore present in the navbar) and whether the user is 
logged in (which changes the items in the navbar). Look at the Auth 
navbar() method to see how it works.

Anthony

Reply via email to