- Timestamp:
- 1 Jan 2010, 16:15:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/authentication.py
r4597 r4601 37 37 passwordfield = 'form.password' 38 38 39 class LoginStaff(grok.View):40 """A login page for staff members.41 """42 grok.context(IWAeUPObject)43 grok.template('login')44 45 def update(self, SUBMIT=None):46 if SUBMIT is None:47 return48 self.flash('You logged in.')49 self.redirect(self.url(grok.getSite()))50 39 51 40 class LoginStudent(grok.View): … … 61 50 self.redirect(self.url(grok.getSite())) 62 51 63 class LoginMainStaff(grok.Viewlet):64 grok.viewletmanager(MainArea)65 grok.context(IWAeUPObject)66 grok.view(LoginStaff)67 52 68 53 class LoginMainStudent(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.