Back to index

plone3  3.1.7
sharing.py
Go to the documentation of this file.
00001 from logging import getLogger
00002 from Products.Five.browser import BrowserView
00003 
00004 class FolderLocalroleFormAlias(BrowserView):
00005     """Base class for views that perform a redirect
00006     """
00007     
00008     def redirect(self):
00009         
00010         log = getLogger('Plone')
00011         log.warn("folder_localrole_form is deprecated and will be removed in "
00012                  "Plone 4.0. Use the /@@sharing view instead. Most likely, "
00013                  "if you see this message the old template is being "
00014                  "referenced in portal_types.")
00015         
00016         self.request.response.redirect('%s/@@sharing' % self.context.absolute_url())