Changeset 4597 for waeup/branches/ulif-layout/src
- Timestamp:
- 1 Jan 2010, 15:58:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/authentication.py
r4576 r4597 37 37 passwordfield = 'form.password' 38 38 39 class Login(grok.View):40 """A general login page used in case of not found resources, etc.41 """42 grok.context(IWAeUPObject)43 # grok.require('zope.Public') # XXX: Does not work in ftests!44 45 def update(self, SUBMIT=None):46 self.camefrom = self.request.form.get('camefrom', '')47 if SUBMIT is not None:48 self.flash('You logged in.')49 self.redirect(self.camefrom)50 51 39 class LoginStaff(grok.View): 52 40 """A login page for staff members. … … 72 60 self.flash('You logged in.') 73 61 self.redirect(self.url(grok.getSite())) 74 75 class LoginMain(grok.Viewlet):76 grok.viewletmanager(MainArea)77 grok.context(IWAeUPObject)78 grok.view(Login)79 62 80 63 class LoginMainStaff(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.