hasRole (Bug or My brain is dead?)
Just a suggestion: You may want to consider whether it would be better to test whether the user has the appropriate permission using has_permission(), rather than for whether they have a particular role. Hamish Lawson ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
* Hamish Lawson (hamish_lawson@yahoo.co.uk) [010419 14:41]:
Just a suggestion: You may want to consider whether it would be better to test whether the user has the appropriate permission using has_permission(), rather than for whether they have a particular role.
Thanks for the suggestion, but it's mainly a beautification. Example: I don't want the traceback on errors visible unless the user is logged in. :-) I don't care what their permissions are, just the fact that they are marked as development savvy. Ciao! -- When the only tool you have is a hammer, you tend to treat everything as if it were a nail. -- Abraham Maslow The Doctor What: Need I say more? http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
Perhaps its just my mail client but your mail shows up as attachements. Annoying. -- Andy McKay. ----- Original Message ----- From: "The Doctor What" <docwhat@gerf.org> To: <zope@zope.org> Sent: Thursday, April 19, 2001 3:05 PM Subject: Re: [Zope] hasRole (Bug or My brain is dead?)
Oh good it's not just me! V annoying! ----- Original Message ----- From: "Andy McKay" <andym@ActiveState.com> To: "The Doctor What" <docwhat@gerf.org>; <zope@zope.org> Sent: Thursday, April 19, 2001 11:24 PM Subject: Re: [Zope] hasRole (Bug or My brain is dead?)
Perhaps its just my mail client but your mail shows up as attachements. Annoying.
* Andy McKay (andym@ActiveState.com) [010419 17:20]:
Perhaps its just my mail client but your mail shows up as attachements. Annoying.
Get the PGP plugin for Outlook. I'm sending GnuPG signed emails. The two parts are the body of the message and the GPG signature. Eudora also behavies badly with signed mail without the PGP plugin. Ciao! -- "Laugh while you can, monkey boy!" --Dr. Emilio Lizardo (Adventures of Buckaroo Banzai) The Doctor What: A Holtje Production http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
OK I won't get the GPG plugin, so I won't read your mail. Thanks for being so understanding! ----- Original Message ----- From: "The Doctor What" <docwhat@gerf.org> To: "Andy McKay" <andym@ActiveState.com> Cc: <zope@zope.org> Sent: Thursday, April 19, 2001 11:27 PM Subject: [Zope] Mail as attachments (MSOutlook Express...)
On Thu, Apr 19, 2001 at 05:27:57PM -0500, The Doctor What wrote:
* Andy McKay (andym@ActiveState.com) [010419 17:20]:
Perhaps its just my mail client but your mail shows up as attachements. Annoying.
Get the PGP plugin for Outlook. I'm sending GnuPG signed emails. The two parts are the body of the message and the GPG signature.
Eudora also behavies badly with signed mail without the PGP plugin.
for some reason the keyserver is refusing connections and causing timeout delays... -- charlie blanchard http://baldguru.com/ Founder: LosAngeles area Zope Users Group http://lazug.org
participants (5)
-
Andy McKay -
Charlie Blanchard -
Hamish Lawson -
Phil Harris -
The Doctor What