[Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Jul 16 01:06:57 EDT 2005


On Saturday 16 July 2005 00:07, Darryl Cousins wrote:
> So much for my solution, is there a better way. :-)

Of course. :-)

from zope.app.security.interfaces import IUnauthenticatedPrincipal

def isLoggedIn(self):
  return not IUnauthenticatedPrincipal.providedBy(self.request.principal)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list