Commit 531c6a57 authored by Shane Hathaway's avatar Shane Hathaway

Incorporated the necessary changes for Hotfix_2000-12-08. Eliminated the

MailHost legacy methods.
parent 32387b8e
......@@ -191,11 +191,21 @@ class ProductContext:
############################################################
for method in legacy:
if type(method) is tt: name, method = method
else: name=method.__name__
if type(method) is tt:
name, method = method
aliased = 1
else:
name=method.__name__
aliased = 0
if not OM.__dict__.has_key(name):
setattr(OM, name, method)
setattr(OM, name+'__roles__', pr)
if aliased:
# Set the unaliased method name and its roles
# to avoid security holes. XXX: All "legacy"
# methods need to be eliminated.
setattr(OM, method.__name__, method)
setattr(OM, method.__name__+'__roles__', pr)
if type(initial) is tt: name, initial = initial
else: name=initial.__name__
......
......@@ -83,8 +83,8 @@
#
##############################################################################
__doc__='''MailHost Product Initialization
$Id: __init__.py,v 1.18 2000/06/09 01:22:13 amos Exp $'''
__version__='$Revision: 1.18 $'[11:-2]
$Id: __init__.py,v 1.19 2000/12/08 21:05:23 shane Exp $'''
__version__='$Revision: 1.19 $'[11:-2]
import MailHost
import SendMailTag
......@@ -95,10 +95,6 @@ def initialize(context):
permission='Add MailHost objects',
constructors=(MailHost.addForm, MailHost.add),
icon='www/MailHost_icon.gif',
legacy=(
('manage_addMailHost_form', MailHost.addForm),
('manage_addMailHost', MailHost.add),
)
)
context.registerHelp()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment