[Checkins] SVN: buddydemo/trunk/src/buddydemo/ftesting.zcml - fixed
ftest setup
Christian Theune
ct at gocept.com
Wed Jun 6 08:53:18 EDT 2007
Log message for revision 76404:
- fixed ftest setup
Changed:
U buddydemo/trunk/src/buddydemo/ftesting.zcml
-=-
Modified: buddydemo/trunk/src/buddydemo/ftesting.zcml
===================================================================
--- buddydemo/trunk/src/buddydemo/ftesting.zcml 2007-06-06 12:43:08 UTC (rev 76403)
+++ buddydemo/trunk/src/buddydemo/ftesting.zcml 2007-06-06 12:53:18 UTC (rev 76404)
@@ -1,41 +1,74 @@
<configure
- xmlns="http://namespaces.zope.org/zope"
- xmlns:meta="http://namespaces.zope.org/meta"
- i18n_domain="zope"
- >
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:meta="http://namespaces.zope.org/meta"
+ i18n_domain="zope"
+ >
<!-- This file is the equivalent of site.zcml and it is -->
<!-- used for functional testing setup -->
+ <include package="zope.app.zcmlfiles" />
+ <include package="zope.app.zcmlfiles" file="ftesting.zcml" />
+
<include package="zope.app.securitypolicy" file="meta.zcml" />
- <include package="zope.app.zcmlfiles" />
+ <include package="zope.app.securitypolicy" />
<include package="zope.app.authentication" />
- <include package="zope.app.securitypolicy" />
- <include package="buddydemo"/>
<securityPolicy
component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+ <role id="zope.Anonymous" title="Everybody"
+ description="All users have this role implicitly" />
<role id="zope.Manager" title="Site Manager" />
+ <role id="zope.Member" title="Site Member" />
+ <!-- Replace the following directive if you don't want public access -->
+ <grant permission="zope.View"
+ role="zope.Anonymous" />
+ <grant permission="zope.app.dublincore.view"
+ role="zope.Anonymous" />
+
<grantAll role="zope.Manager" />
<include package="zope.app.securitypolicy.tests" file="functional.zcml" />
+ <!-- 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" />
+ 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" />
+ id="zope.globalmgr"
+ title="Manager"
+ login="globalmgr"
+ password="globalmgrpw" />
<grant role="zope.Manager" principal="zope.globalmgr" />
+ <include package="buddydemo" />
+
</configure>
More information about the Checkins
mailing list