[Zope-Checkins] CVS: Zope3 - stupid_build.py:1.3 z3.py:1.3
Guido van Rossum
guido@python.org
Fri, 14 Jun 2002 14:51:10 -0400
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv19056
Modified Files:
stupid_build.py z3.py
Log Message:
Move check for and warning about missing principals.zcml to z3.py, and
turn it into an error.
=== Zope3/stupid_build.py 1.2 => 1.3 ===
print 'Copying products.zcml.in to products.zcml'
open('products.zcml', 'w').write(open('products.zcml.in').read())
-
- if not os.path.exists('principals.zcml'):
- print """WARNING: You need to create principals.zcml
-
- The file principals.zcml contains your "bootstrap" user
- database. You aren't going to get very far without it. Start
- by copying principals.zcml.in and then look at
- sample_principals.zcml for some example principal and role
- settings.
- """
-
-
-
setup_dirs = []
os.path.walk(os.getcwd(), visit, setup_dirs)
args = tuple(sys.argv[1:])
=== Zope3/z3.py 1.2 => 1.3 ===
def run(argv=sys.argv):
+ # Refuse to run without principals.zcml
+ if not os.path.exists('principals.zcml'):
+ print """ERROR: You need to create principals.zcml
+
+ The file principals.zcml contains your "bootstrap" user
+ database. You aren't going to get very far without it. Start
+ by copying principals.zcml.in and then look at
+ sample_principals.zcml for some example principal and role
+ settings."""
+ sys.exit(1)
+
# setting python paths
program = argv[0]
here = os.path.join(os.getcwd(), os.path.split(program)[0])