Ignore:
Timestamp:
29 Dec 2009, 17:15:00 (15 years ago)
Author:
uli
Message:

Move sidebar login box into new page layout.

Location:
waeup/branches/ulif-layout/src/waeup/browser
Files:
1 edited
1 copied
1 moved

Legend:

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

    r4584 r4588  
    2121# waeup.app.University viewlets...
    2222#
     23class Login(grok.Viewlet):
     24    """This viewlet allows to login in the sidebar.
     25    """
     26    grok.viewletmanager(LeftSidebar)
     27    grok.context(IUniversity)
     28    grok.view(UniversityPage)
     29    grok.order(2)
     30
     31    def isAuthenticated(self):
     32        """Is the calling user authenticated?
     33        """
     34        return self.request.principal.id != 'zope.anybody'
     35
    2336class ManageLink(grok.Viewlet):
    2437    grok.viewletmanager(LeftSidebar)
Note: See TracChangeset for help on using the changeset viewer.