Changeset 4597 for waeup/branches


Ignore:
Timestamp:
1 Jan 2010, 15:58:32 (15 years ago)
Author:
uli
Message:

Remove main login page views: they moved to browser subpackage and are
a single megrok.layout pages now instead of views.

File:
1 edited

Legend:

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

    r4576 r4597  
    3737    passwordfield = 'form.password'
    3838
    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 
    5139class LoginStaff(grok.View):
    5240    """A login page for staff members.
     
    7260        self.flash('You logged in.')
    7361        self.redirect(self.url(grok.getSite()))
    74 
    75 class LoginMain(grok.Viewlet):
    76     grok.viewletmanager(MainArea)
    77     grok.context(IWAeUPObject)
    78     grok.view(Login)
    7962
    8063class LoginMainStaff(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.