Changeset 4604 for waeup/branches


Ignore:
Timestamp:
1 Jan 2010, 16:28:53 (15 years ago)
Author:
uli
Message:

Add a login page for students.

File:
1 edited

Legend:

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

    r4600 r4604  
    4747
    4848
     49class LoginStudentPage(WAeUPPage):
     50    """A login page for students.
     51    """
     52    grok.context(IWAeUPObject)
     53    grok.name('loginstudent')
     54    grok.template('loginstudentpage')
     55    title = u'Student Login'
     56    camefrom = None
     57
     58    def update(self, SUBMIT=None):
     59        if SUBMIT is None:
     60            return
     61        self.flash('You logged in.')
     62        self.redirect(self.url(grok.getSite()))
     63
     64
    4965class UniversityPage(WAeUPPage):
    5066    """ The main university page.
Note: See TracChangeset for help on using the changeset viewer.