Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.Extensions.accessRule Namespace Reference

Functions

def accessRule

Variables

tuple HTTP_MANAGE = os.environ.get('HTTP_MANAGE', '')
string siteObj = 'Plone'

Function Documentation

def CMFPlone.Extensions.accessRule.accessRule (   self,
  args 
)

Definition at line 33 of file accessRule.py.

00033 
00034 def accessRule(self, *args):
00035     if self.REQUEST.get('SERVER_PORT', '') != HTTP_MANAGE and self.REQUEST['URL'].find(siteObj) < 0:
00036         self.REQUEST['TraversalRequestNameStack'].append(siteObj)
00037         self.REQUEST.set('SiteRootPATH', '/')
00038         # a useful little addition to the HTTP headers to allow proxies
00039         # and other tools to tell that this access rule has been activated
00040         # the fact that this rule gets run confuses a lot of people and this may help
        self.REQUEST.RESPONSE.addHeader('X-Access-Rule', 'accessRule.py')

Variable Documentation

Definition at line 30 of file accessRule.py.

Definition at line 31 of file accessRule.py.