1
#! /usr/bin/env python2.3
2
##############################################################################
4
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
7
# This software is subject to the provisions of the Zope Public License,
8
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
9
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
10
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
11
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
12
# FOR A PARTICULAR PURPOSE.
14
##############################################################################
15
# arch-tag: 65bbad4c-38de-4a86-9aa5-d4d2fd38c97d
16
"""Start script for Soyuz: loads configuration and starts the server.
18
$Id: z3.py 25266 2004-06-04 21:25:45Z jim $
23
basepath = filter(None, sys.path)
25
def run(argv=list(sys.argv)):
27
if sys.version_info < ( 2,3,4 ):
29
ERROR: Your python version is not supported by Zope3.
30
Zope3 needs Python 2.3.4 or greater. You are running:""" + sys.version
33
# Refuse to run without principals.zcml
34
if not os.path.exists('principals.zcml'):
36
ERROR: You need to create principals.zcml
38
The file principals.zcml contains your "bootstrap" user
39
database. You aren't going to get very far without it. Start
40
by copying sample_principals.zcml and then modify the
41
example principal and role settings.
45
# setting python paths
49
here = os.path.dirname(os.path.abspath(program))
50
srcdir = os.path.abspath(src)
51
sys.path = [srcdir, here] + basepath
53
from zope.app.server.main import main
57
if __name__ == '__main__':