Back to index

plone3  3.1.7
policy.py
Go to the documentation of this file.
00001 from zope.interface import implements, Interface
00002 from zope.component import adapts
00003 
00004 from plone.app.redirector.interfaces import IRedirectionPolicy
00005 
00006 class RedirectionPolicy(object):
00007     implements(IRedirectionPolicy)
00008     adapts(Interface)
00009 
00010     def __init__(self, context):
00011         self.context = context
00012 
00013     # The following ids are ignored when looking for parts of a URL to
00014     # consider part of a path - see browser.py.
00015 
00016     ignore_ids = ('index_html',
00017                   'FrontPage',
00018                   'folder_listing',
00019                   'folder_contents',
00020                   'view',
00021                   'edit',
00022                   'properties',
00023                   'sharing',
00024                   '+', # IAdding view
00025                   )