Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
531c6a57
Commit
531c6a57
authored
Dec 08, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Incorporated the necessary changes for Hotfix_2000-12-08. Eliminated the
MailHost legacy methods.
parent
32387b8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
lib/python/App/ProductContext.py
lib/python/App/ProductContext.py
+12
-2
lib/python/Products/MailHost/__init__.py
lib/python/Products/MailHost/__init__.py
+2
-6
No files found.
lib/python/App/ProductContext.py
View file @
531c6a57
...
...
@@ -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__
...
...
lib/python/Products/MailHost/__init__.py
View file @
531c6a57
...
...
@@ -83,8 +83,8 @@
#
##############################################################################
__doc__
=
'''MailHost Product Initialization
$Id: __init__.py,v 1.1
8 2000/06/09 01:22:13 amos
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: __init__.py,v 1.1
9 2000/12/08 21:05:23 shane
Exp $'''
__version__
=
'$Revision: 1.1
9
$'
[
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment