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
f92ccb10
Commit
f92ccb10
authored
Jun 19, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed ancient App.HotFixes module.
parent
3ea55006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
62 deletions
+2
-62
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/App/Hotfixes.py
src/App/Hotfixes.py
+0
-62
No files found.
doc/CHANGES.rst
View file @
f92ccb10
...
...
@@ -11,6 +11,8 @@ Trunk (unreleased)
Restructuring
+++++++++++++
-
Removed
ancient
App
.
HotFixes
module
.
-
ZPublisherExceptionHook
:
Removed
ancient
backwards
compatibility
code
.
Customized
raise_standardErrorMessage
methods
have
to
implement
the
signature
introduced
in
Zope
2.6
.
...
...
src/App/Hotfixes.py
deleted
100644 → 0
View file @
3ea55006
##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# 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
#
##############################################################################
from
version_txt
import
getZopeVersion
from
logging
import
getLogger
LOG
=
getLogger
(
'Hotfixes'
)
merged_hotfixes
=
{
'Hotfix_2001-09-28'
:
1
,
'Hotfix_2002-03-01'
:
1
,
'Hotfix_2002-04-15'
:
1
,
'Hotfix_2002-06-14'
:
1
,
}
APPLY
=
1
ALREADY_MERGED
=
0
OUTDATED_ZOPE
=
None
def
isMerged
(
name
):
return
merged_hotfixes
.
get
(
name
,
0
)
def
logHotfix
(
id
,
apply_hotfix
):
if
apply_hotfix
:
LOG
.
info
(
'Applying %s'
%
id
)
elif
apply_hotfix
is
OUTDATED_ZOPE
:
LOG
.
warn
(
'Not applying %s. It is not designed for '
'this version of Zope. Please uninstall the hotfix product.'
%
id
)
else
:
# ALREADY_MERGED
LOG
.
warn
(
'Not applying %s. The fix has already been '
'merged into Zope. Please uninstall the hotfix product.'
%
id
)
def
beforeApplyHotfix
(
id
,
req_major
,
req_minor
,
req_micro
):
major
,
minor
,
micro
=
getZopeVersion
()[:
3
]
if
major
>
0
and
(
(
major
*
10000
+
minor
*
100
+
micro
)
<
(
req_major
*
10000
+
req_minor
*
100
+
req_micro
)):
# The version of Zope is too old for this hotfix.
apply_hotfix
=
OUTDATED_ZOPE
elif
isMerged
(
id
):
apply_hotfix
=
ALREADY_MERGED
else
:
apply_hotfix
=
APPLY
logHotfix
(
id
,
apply_hotfix
)
return
apply_hotfix
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