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 Cousi
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,
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)
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 default/PluggableAuthenticati
Hi,
Using recent svn checkout.
I have found perhaps a problem using session credentials that I am
unable to debug and solve.
On a fresh site I have registered Pluggabble Authentication and Session
Credentials, create a Principals Folder and an InternalPrinciple within.
The login screen works fi