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

Add login page for staff.

File:
1 edited

Legend:

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

    r4594 r4600  
    2828                return
    2929            self.redirect(self.camefrom)
     30
     31
     32class LoginStaffPage(WAeUPPage):
     33    """A login page for staff members.
     34    """
     35    grok.context(IWAeUPObject)
     36    grok.name('loginstaff')
     37    grok.template('loginstaffpage')
     38   
     39    title = u'Staff Login'
     40    camefrom = None
     41   
     42    def update(self, SUBMIT=None):
     43        if SUBMIT is None:
     44            return
     45        self.flash('You logged in.')
     46        self.redirect(self.url(grok.getSite()))
    3047
    3148
Note: See TracChangeset for help on using the changeset viewer.