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
cbd41016
Commit
cbd41016
authored
Jun 24, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed outdated check_python_version function from startup process.
parent
ff16522b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/Zope2/Startup/__init__.py
src/Zope2/Startup/__init__.py
+0
-11
No files found.
doc/CHANGES.rst
View file @
cbd41016
...
...
@@ -11,6 +11,8 @@ Trunk (unreleased)
Restructuring
+++++++++++++
-
Removed
outdated
check_python_version
function
from
startup
process
.
-
ZPublisher
:
Removed
'Main'
and
'Zope'
wrappers
for
Test
.
publish
.
If
anybody
really
used
them
,
he
can
easily
use
ZPublisher
.
test
instead
.
In
the
long
run
ZPublisher
.
test
and
ZPublisher
.
Test
might
also
be
removed
.
...
...
src/Zope2/Startup/__init__.py
View file @
cbd41016
...
...
@@ -31,7 +31,6 @@ logger = logging.getLogger("Zope")
started
=
False
def
get_starter
():
check_python_version
()
if
sys
.
platform
[:
3
].
lower
()
==
"win"
:
return
WindowsZopeStarter
()
else
:
...
...
@@ -354,16 +353,6 @@ class UnixZopeStarter(ZopeStarter):
self
.
setupConfiguredLoggers
()
def
check_python_version
():
# check for Python version
python_version
=
sys
.
version
.
split
()[
0
]
optimum_version
=
'2.3.4'
if
python_version
<
'2.3.4'
:
raise
ZConfig
.
ConfigurationError
(
'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.
# This needs to be a function so it may be used outside of Zope
...
...
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