Changeset 4606 for waeup/branches/ulif-layout
- Timestamp:
- 1 Jan 2010, 16:29:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/authentication.py
r4601 r4606 36 36 loginfield = 'form.login' 37 37 passwordfield = 'form.password' 38 39 40 class LoginStudent(grok.View):41 """A login page for students.42 """43 grok.context(IWAeUPObject)44 grok.template('login')45 46 def update(self, SUBMIT=None):47 if SUBMIT is None:48 return49 self.flash('You logged in.')50 self.redirect(self.url(grok.getSite()))51 52 53 class LoginMainStudent(grok.Viewlet):54 grok.viewletmanager(MainArea)55 grok.context(IWAeUPObject)56 grok.view(LoginStudent)57 38 58 39
Note: See TracChangeset for help on using the changeset viewer.