Changeset 4588 for waeup/branches/ulif-layout/src
- Timestamp:
- 29 Dec 2009, 17:15:00 (15 years ago)
- 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 21 21 # waeup.app.University viewlets... 22 22 # 23 class 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 23 36 class ManageLink(grok.Viewlet): 24 37 grok.viewletmanager(LeftSidebar)
Note: See TracChangeset for help on using the changeset viewer.