Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-16 Thread Darryl Cousins
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

Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-15 Thread Stephan Richter
On Thursday 23 June 2005 21:52, Darryl Cousins wrote: and as such has **no getLogin method**. This is correct. zope.security.interfaces.IPrincipal does nto specify a getLogin() method. I would have expected it to provide InternalPrincipal as it appears to in

Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-15 Thread Darryl Cousins
Hi Stephan, Thanks for the reply. My purpose was to be able to test for an authenticated user. My solution was to add a subclass of BrowserView with the following: def isLoggedIn(self): dummy = self.request.principal pau = getUtility(IAuthentication,'',self.context)

Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-15 Thread Stephan Richter
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,