[Checkins] SVN: gocept.zope3instance/trunk/src/gocept/zope3instance/skel/ split ftesing.zcml principals into separate file

Christian Zagrodnick cz at gocept.com
Thu Feb 8 04:42:17 EST 2007


Log message for revision 72450:
  split ftesing.zcml principals into separate file

Changed:
  U   gocept.zope3instance/trunk/src/gocept/zope3instance/skel/ftesting.zcml
  A   gocept.zope3instance/trunk/src/gocept/zope3instance/skel/principals-testing.zcml

-=-
Modified: gocept.zope3instance/trunk/src/gocept/zope3instance/skel/ftesting.zcml
===================================================================
--- gocept.zope3instance/trunk/src/gocept/zope3instance/skel/ftesting.zcml	2007-02-08 09:41:59 UTC (rev 72449)
+++ gocept.zope3instance/trunk/src/gocept/zope3instance/skel/ftesting.zcml	2007-02-08 09:42:16 UTC (rev 72450)
@@ -8,47 +8,12 @@
   <!-- used for functional testing setup -->
 
   <include file="base.zcml" />
-  <include package="zope.app" />
-  <include package="zope.app" file="ftesting.zcml" />
+  <include package="zope.app.zcmlfiles" />
+  <include package="zope.app.zcmlfiles" file="ftesting.zcml" />
 
   <include file="securitypolicy.zcml" />
   <include package="zope.app.securitypolicy.tests" file="functional.zcml" />
 
-  <!-- Principals -->
+  <include file="principals-testing.zcml" />
 
-  <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"
-    />
-
-  <!-- Principal that tests generally run as -->
-  <principal
-      id="zope.mgr"
-      title="Manager"
-      login="mgr"
-      password="mgrpw" />
-
-  <!-- Bootstrap principal used to make local grant to the principal above -->
-  <principal
-      id="zope.globalmgr"
-      title="Manager"
-      login="globalmgr"
-      password="globalmgrpw" />
-
-  <grant role="zope.Manager" principal="zope.globalmgr" />
-
 </configure>

Added: gocept.zope3instance/trunk/src/gocept/zope3instance/skel/principals-testing.zcml
===================================================================
--- gocept.zope3instance/trunk/src/gocept/zope3instance/skel/principals-testing.zcml	2007-02-08 09:41:59 UTC (rev 72449)
+++ gocept.zope3instance/trunk/src/gocept/zope3instance/skel/principals-testing.zcml	2007-02-08 09:42:16 UTC (rev 72450)
@@ -0,0 +1,44 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:meta="http://namespaces.zope.org/meta"
+   i18n_domain="zope"
+   >
+  
+   <!-- Principals -->
+
+  <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"
+    />
+
+  <!-- Principal that tests generally run as -->
+  <principal
+      id="zope.mgr"
+      title="Manager"
+      login="mgr"
+      password="mgrpw" />
+
+  <!-- Bootstrap principal used to make local grant to the principal above -->
+  <principal
+      id="zope.globalmgr"
+      title="Manager"
+      login="globalmgr"
+      password="globalmgrpw" />
+
+  <grant role="zope.Manager" principal="zope.globalmgr" />
+</configure>
+



More information about the Checkins mailing list