Fix 'buildout.cfg' modification code
[zope-bootstrap.git] / skel-zope3 / site.zcml
diff --git a/skel-zope3/site.zcml b/skel-zope3/site.zcml
new file mode 100644 (file)
index 0000000..51407c3
--- /dev/null
@@ -0,0 +1,50 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+           i18n_domain="appmain">
+
+  <include package="appmain" />
+
+  <!-- Remove this reference to disable the APIDoc tool.
+       You should do this for production -->
+  <include file="apidoc.zcml" />
+
+  <include package="zope.securitypolicy" file="meta.zcml" />
+  <include package="zope.app.securitypolicy" />
+  <securityPolicy 
+      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+  <unauthenticatedPrincipal id="zope.anybody"
+                            title="Unauthenticated User" />
+  <unauthenticatedGroup id="zope.Anybody"
+                        title="Unauthenticated Users" />
+  <authenticatedGroup id="zope.Authenticated"
+                      title="Authenticated Users" />
+  <everybodyGroup id="zope.Everybody"
+                  title="All Users" />
+
+  <!-- Initial administrator account.  Disable this for production -->
+  <principal id="zope.manager"
+             title="Manager"
+             login="admin"
+             password_manager="Plain Text"
+             password="admin"
+             />
+
+  <!-- With the default zope securitypolicy, this is a
+       special role that every user has -->
+  <role id="zope.Anonymous"
+        title="Everybody"
+        description="All users have this role implicitly" />
+
+  <!-- Replace the following directives if you don't want public access -->
+  <grant permission="zope.View"
+         role="zope.Anonymous" />
+  <grant permission="zope.app.dublincore.view"
+         role="zope.Anonymous" />
+    
+  <role id="zope.Manager" title="Site Manager" />
+  <role id="zope.Member" title="Site Member" />
+  <grantAll role="zope.Manager" />
+  <grant role="zope.Manager"
+         principal="zope.manager" />
+
+</configure>