[Zope3-Users] Pluggable Authentication and
SessionCredentialsPlugin
Darryl Cousins
darryl at darrylcousins.net.nz
Sat Jul 16 03:28:46 EDT 2005
On Sat, 2005-07-16 at 01:06 -0400, Stephan Richter wrote:
> On Saturday 16 July 2005 00:07, Darryl Cousins wrote:
> > So much for my solution, is there a better way. :-)
>
> Of course. :-)
:-) Yes, I should have written **what's** the better way? :-)
Thanks for that.
Best regards,
Darryl Cousins
>
> from zope.app.security.interfaces import IUnauthenticatedPrincipal
>
> def isLoggedIn(self):
> return not IUnauthenticatedPrincipal.providedBy(self.request.principal)
>
> Regards,
> Stephan
--
Darryl Cousins <darryl at darrylcousins.net.nz>
Tree Fern Web Services
106 Sandes St
Thames
New Zealand
**64 (0)7 868 3139
More information about the Zope3-users
mailing list