I don't object to the patch (maybe submit it as a pull request on Github), 
but in the meantime, you can do:

navbar = auth.navbar()
del navbar[2:4]

Or do:

navbar_dict = auth.navbar(mode='bare')

which gives you a dictionary from which you can build your own navbar.

Anthony

On Monday, May 5, 2014 9:36:29 PM UTC-4, Carlos Correia wrote:

> Hi,
>
> It seems no one is interested on this subject...
>
> Is there any kind of workaround that survives upgrades?
>
> Best regards,
>
> Carlos
>
> Quinta-feira, 16 de Maio de 2013 8:17:28 UTC+1, Carlos Correia escreveu:
>>
>> -----BEGIN PGP SIGNED MESSAGE----- 
>> Hash: SHA1 
>>
>> Hi, 
>>
>> I needed to hide registering from navbar, but still be able to use the 
>> link 
>> (app/default/user/register) if I call it explicitly. 
>>
>> I tried first: 
>> auth.settings.actions_disabled=['register'] 
>>
>> but then, I got a 404 error on that link, so I've added an extra 
>> parameter to 
>> Auth.navbar() that accepts an array of actions to hide. 
>>
>> I attach the patch from [Version 2.3.2 (2012-12-17 08:59:58) stable] with 
>> the 
>> changes. 
>>
>> - -- 
>> Com os melhores cumprimentos, 
>>
>> Carlos Correia 
>> ========================= 
>> MEMÓRIA PERSISTENTE 
>> Tel.: 219 291 591 - GSM:  917 157 146 / 967 511 762 
>> e-mail: [email protected] - URL: 
>> http://www.memoriapersistente.pt 
>> Jabber: [email protected] 
>> GnuPG: wwwkeys.eu.pgp.net 
>> URL Suporte: https://t5.m16e.com/gps 
>> -----BEGIN PGP SIGNATURE----- 
>> Version: GnuPG v1.4.12 (GNU/Linux) 
>> Comment: Using GnuPG with undefined - http://www.enigmail.net/ 
>>
>> iEYEARECAAYFAlGUiAgACgkQ90uzwjA1SJVHGQCdGebSos1BbEWTHYmNyu3zkmkl 
>> ltIAn3FEqjSHU0owCAfRqWLptZ6LGShR 
>> =g7B7 
>> -----END PGP SIGNATURE----- 
>>
>

-- 
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.

Reply via email to