summaryrefslogtreecommitdiffstats
path: root/Products/JRedirector/JRedirector.py
diff options
context:
space:
mode:
Diffstat (limited to 'Products/JRedirector/JRedirector.py')
-rw-r--r--Products/JRedirector/JRedirector.py39
1 files changed, 25 insertions, 14 deletions
diff --git a/Products/JRedirector/JRedirector.py b/Products/JRedirector/JRedirector.py
index fbc2cd5..1f8ccea 100644
--- a/Products/JRedirector/JRedirector.py
+++ b/Products/JRedirector/JRedirector.py
@@ -1,24 +1,35 @@
##############################################################################
#
-# JRedirector Perform and log redirections
+# Copyright (c) 2002-2009 Jens Vagelpohl and Contributors. All Rights Reserved.
#
-# This software is governed by a license. See
-# LICENSE.txt for the terms of this license.
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
#
-###############################################################################
+##############################################################################
+""" JRedirector main module
-__doc__ = """ JRedirector Module """
-__version__='$Revision$'[11:-2]
+$Id$
+"""
+
+import os
+import time
-import os, time
-from DateTime.DateTime import DateTime
-from Acquisition import aq_inner, aq_parent
-from AccessControl.Permissions import view_management_screens, manage_properties
from AccessControl import ClassSecurityInfo
-from OFS.SimpleItem import SimpleItem
+from AccessControl.Permissions import manage_properties
+from AccessControl.Permissions import view_management_screens
+from Acquisition import aq_inner
+from Acquisition import aq_parent
+from App.class_init import default__class_init__ as InitializeClass
+from App.Common import package_home
+from App.special_dtml import DTMLFile
from BTrees.OOBTree import OOBTree
-from Globals import DTMLFile, InitializeClass, MessageDialog, \
- PersistentMapping, package_home
+from DateTime.DateTime import DateTime
+from OFS.SimpleItem import SimpleItem
+from Globals import MessageDialog, PersistentMapping
_dtmldir = os.path.join(package_home(globals()), 'dtml')
addJRedirectorForm = DTMLFile('add', _dtmldir)
@@ -270,7 +281,7 @@ class JRedirector(SimpleItem):
return self.manage_map(manage_tabs_message=msg)
- security.declareProtected(manage_properties, 'deleteRedirectorMapping')
+ security.declareProtected(manage_properties, 'deleteRedirectorMappings')
def deleteRedirectorMappings(self, old_paths, REQUEST=None):
""" Delete a redirector mapping """
for old_path in old_paths: