Back to index

plone3  3.1.7
login.py
Go to the documentation of this file.
00001 from Products.Five.browser import BrowserView
00002 
00003 class LoginAlias(BrowserView):
00004     """Base class for views that perform a redirect
00005     """
00006     
00007     def redirect(self):
00008         url = self.request.get('HTTP_REFERER', None)
00009         if not url:
00010             url = self.context.absolute_url()
00011         self.request.response.redirect('login_form?came_from=%s' % url)