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
640d3af9
Commit
640d3af9
authored
May 28, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated check_python_version to current requirements
parent
73c21afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
lib/python/Zope/Startup/__init__.py
lib/python/Zope/Startup/__init__.py
+5
-10
No files found.
lib/python/Zope/Startup/__init__.py
View file @
640d3af9
...
...
@@ -342,17 +342,12 @@ class UnixZopeStarter(ZopeStarter):
def
check_python_version
():
# check for Python version
python_version
=
sys
.
version
.
split
()[
0
]
optimum_version
=
'2.
2
.3'
if
python_version
<
'2.
2
'
:
optimum_version
=
'2.
3
.3'
if
python_version
<
'2.
3.3
'
:
raise
ZConfig
.
ConfigurationError
(
'Invalid python version '
+
python_version
)
if
python_version
[:
3
]
==
'2.2'
:
if
python_version
[
4
:
5
]
<
'2'
:
err
=
(
'You are running Python version %s. This Python version '
'has known bugs that may cause Zope to run improperly. '
'Consider upgrading to Python %s
\
n
'
%
(
python_version
,
optimum_version
))
sys
.
stderr
.
write
(
err
)
'Invalid python version: %s, the optimal version is %s or higher'
%
(
python_version
,
optimum_version
))
def
dropPrivileges
(
cfg
):
# Drop root privileges if we have them and we're on a posix platform.
...
...
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