[Checkins] SVN: zwiki/branches/baijum-experimental-zwiki/ ftest
related files (missed in last commit)
Baiju M
baiju.m.mail at gmail.com
Mon Apr 2 09:12:52 EDT 2007
Log message for revision 73981:
ftest related files (missed in last commit)
Changed:
_U zwiki/branches/baijum-experimental-zwiki/bootstrap.py
_U zwiki/branches/baijum-experimental-zwiki/setup.py
A zwiki/branches/baijum-experimental-zwiki/src/zwiki/ftesting.zcml
A zwiki/branches/baijum-experimental-zwiki/src/zwiki/testing.py
-=-
Property changes on: zwiki/branches/baijum-experimental-zwiki/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: zwiki/branches/baijum-experimental-zwiki/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Added: zwiki/branches/baijum-experimental-zwiki/src/zwiki/ftesting.zcml
===================================================================
--- zwiki/branches/baijum-experimental-zwiki/src/zwiki/ftesting.zcml 2007-04-02 13:03:11 UTC (rev 73980)
+++ zwiki/branches/baijum-experimental-zwiki/src/zwiki/ftesting.zcml 2007-04-02 13:12:52 UTC (rev 73981)
@@ -0,0 +1,67 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ i18n_domain="zwiki"
+ package="zwiki"
+ >
+
+ <!-- This file is the equivalent of site.zcml and it is -->
+ <!-- used for functional testing setup -->
+
+
+ <include package="zope.app.securitypolicy" file="meta.zcml" />
+ <include package="zope.sendmail" file="meta.zcml"/>
+ <include package="zope.app.layers" file="meta.zcml" />
+
+ <include package="zope.app.zcmlfiles" />
+ <include package="zope.app.authentication" />
+ <include package="zope.app.securitypolicy" />
+ <include package="zope.app.twisted" />
+ <include package="zope.sendmail" />
+ <include package="zope.app.zptpage"/>
+ <include package="zope.app.renderer"/>
+ <include package="zwiki" />
+
+ <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" />
+
+ <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
+ id="zope.manager"
+ title="Manager"
+ login="mgr"
+ password="mgrpw"
+ />
+
+ <grant
+ role="zope.Manager"
+ principal="zope.manager" />
+
+</configure>
Property changes on: zwiki/branches/baijum-experimental-zwiki/src/zwiki/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zwiki/branches/baijum-experimental-zwiki/src/zwiki/testing.py
===================================================================
--- zwiki/branches/baijum-experimental-zwiki/src/zwiki/testing.py 2007-04-02 13:03:11 UTC (rev 73980)
+++ zwiki/branches/baijum-experimental-zwiki/src/zwiki/testing.py 2007-04-02 13:12:52 UTC (rev 73981)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""zwiki common test related classes/functions/objects.
+
+$Id$
+"""
+
+__docformat__ = "reStructuredText"
+
+import os
+from zope.app.testing.functional import ZCMLLayer
+
+ZWikiLayer = ZCMLLayer(
+ os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+ __name__, 'ZWikiLayer', allow_teardown=True)
+
Property changes on: zwiki/branches/baijum-experimental-zwiki/src/zwiki/testing.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the Checkins
mailing list