-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Em 06-05-2014 03:31, Anthony escreveu: > 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() > delnavbar[2:4] > | > > Or do: > > | > navbar_dict =auth.navbar(mode='bare') > | > > which gives you a dictionary from which you can build your own navbar. > > Anthony >
Thank you, Anthony, Both solve my problem, at least, by now. Meanwhile, I'll try to submit a patch from trunk on Github. > 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: > > 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. > > > -- > 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 web2py+unsubscr...@googlegroups.com > <mailto:web2py+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. - -- Com os melhores cumprimentos, Carlos Correia ========================= MEMÓRIA PERSISTENTE Tel.: 219 291 591 - GSM: 917 157 146 / 967 511 762 e-mail: ge...@memoriapersistente.pt - URL: http://www.memoriapersistente.pt Jabber: m...@jabber.org GnuPG: wwwkeys.eu.pgp.net URL Suporte: https://t5.m16e.com/gps -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlNpUUAACgkQ90uzwjA1SJVMnACeLST3Z6wiTLEXauXffrSGMJbY 068An2kHvTmFYWRFv6/CVzL4D082obBW =+BtW -----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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.