Changeset 4614 for waeup


Ignore:
Timestamp:
2 Jan 2010, 02:47:07 (15 years ago)
Author:
uli
Message:

Let layouts tell about user's authentication status.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/layout.py

    r4592 r4614  
    9595    grok.context(IWAeUPObject)
    9696
     97    def isAuthenticated(self):
     98        """Return True if the calling user is authenticated.
     99        """
     100        usertitle = self.request.principal.title
     101        return usertitle != 'Unauthenticated User'
     102   
    97103    def getUserTitle(self):
    98104        usertitle = self.request.principal.title
Note: See TracChangeset for help on using the changeset viewer.