Changeset 4609
- Timestamp:
- 2 Jan 2010, 01:55:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/browser/pages.py
r4608 r4609 8 8 9 9 grok.templatedir('templates') 10 11 # 12 # Login pages... 13 # 10 14 11 15 class LoginPage(WAeUPPage): … … 32 36 33 37 34 class LoginStaffPage( WAeUPPage):38 class LoginStaffPage(LoginPage): 35 39 """A login page for staff members. 36 40 """ 37 grok.context(IWAeUPObject)38 41 grok.name('loginstaff') 39 42 grok.template('loginstaffpage') 40 41 43 title = u'Staff Login' 42 camefrom = None43 44 def update(self, SUBMIT=None):45 if SUBMIT is None:46 return47 self.flash('You logged in.')48 self.redirect(self.url(grok.getSite()))49 44 50 45 51 class LoginStudentPage( WAeUPPage):46 class LoginStudentPage(LoginPage): 52 47 """A login page for students. 53 48 """ 54 grok.context(IWAeUPObject)55 49 grok.name('loginstudent') 56 50 grok.template('loginstudentpage') 57 51 title = u'Student Login' 58 camefrom = None59 52 60 def update(self, SUBMIT=None):61 if SUBMIT is None:62 return63 self.flash('You logged in.')64 self.redirect(self.url(grok.getSite()))65 53 54 # 55 # University related pages... 56 # 66 57 67 58 class UniversityPage(WAeUPPage):
Note: See TracChangeset for help on using the changeset viewer.