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
Also can you provide with exact snippet of lines to edit the navbar for |
and [ ]

Thanks,
Viren

On Wed, Nov 16, 2011 at 9:29 AM, Ray (a.k.a. Iceberg) <[email protected]>wrote:

> Hi Anthony,
>
> So you are quite familiar with the web2py internal, this time the
> navbar. Are you the programmer of that function? Would you comment on
> this issue?
>
> http://code.google.com/p/web2py/issues/detail?id=517
>
> Regards,
> Ray
>
> On Nov 16, 3:47 am, Anthony <[email protected]> wrote:
> > In trunk, auth.navbar now takes a new 'separators' argument -- the
> default
> > is
> >
> > auth.navbar(..., separators=(' [ ', ' | ', ' ] '))
> >
> > The new 'welcome' app will actually get rid of the brackets, with
> separators=('',
> > ' | ', '').
> >
> > Also, auth.navbar() simply returns a web2py SPAN helper object, so you
> can
> > manually edit it:
> >
> > navbar = auth.navbar()
> > del navbar[0], navbar[-1]  # no more brackets
> >
> > Finally, it's easy to create your own navbar. Assuming your auth action
> is
> > the standard /default/user function:
> >
> > SPAN(A('Login', _href=URL('default', 'user', args='login')), ' | ',
> > A('Register', _href=URL('default', 'register', args='register')),
> > _class='auth_navbar')
> >
> > Anthony
> >
> >
> >
> >
> >
> >
> >
> > On Tuesday, November 15, 2011 12:21:44 PM UTC-5, Michael Gheith wrote:
> >
> > > Does anyone know how to get rid of the brackets and pipes in:
> > > [ login | register | lost password? ]
> >
> > > Also, would it be easy to append my own menu with the above?  If so,
> > > then what file does this reside in?
> >
> > > Thanks in advance,
> > > Michael Gheith
>

Reply via email to