[Zope-Checkins] CVS: Zope3 - principals.zcml.in:1.1.2.1 products.zcml.in:1.1.2.1 stupid_build.py:1.1.2.5 principals.zcml:NONE products.zcml:NONE

Jim Fulton jim@zope.com
Tue, 26 Mar 2002 16:49:16 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv14425

Modified Files:
      Tag: Zope-3x-branch
	stupid_build.py 
Added Files:
      Tag: Zope-3x-branch
	principals.zcml.in products.zcml.in 
Removed Files:
      Tag: Zope-3x-branch
	principals.zcml products.zcml 
Log Message:
principals.zcml and products.zcml usually contain local customizations
that shouldn't be checked in. Renamed them to .in files in the
repository. Changed the stupid builder to copy the products file and
to warn that the principals file needs to be created.



=== Added File Zope3/principals.zcml.in ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:security='http://namespaces.zope.org/security'
   xmlns:zmi='http://namespaces.zope.org/zmi'
   xmlns:browser='http://namespaces.zope.org/browser'
>

<security:defaultPrincipal principal_id="anybody" title="Unauthenticated User" />

</zopeConfigure>


=== Added File Zope3/products.zcml.in ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:security='http://namespaces.zope.org/security'
   xmlns:zmi='http://namespaces.zope.org/zmi'
   xmlns:browser='http://namespaces.zope.org/browser'
>
<!-- add include directives for products here -->
</zopeConfigure>


=== Zope3/stupid_build.py 1.1.2.4 => 1.1.2.5 ===
 
 def main():
+    if (not os.path.exists('products.zcml') and
+        os.path.exists('products.zcml.in')):
+        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)
     for dir in setup_dirs:

=== Removed File Zope3/principals.zcml ===

=== Removed File Zope3/products.zcml ===