Commit cbd41016 authored by Hanno Schlichting's avatar Hanno Schlichting

Removed outdated check_python_version function from startup process.

parent ff16522b
......@@ -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.
......
......@@ -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
......
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