[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser/tests - test_directives.py:1.20

Philipp von Weitershausen philikon at philikon.de
Sat Aug 2 23:13:27 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser/tests
In directory cvs.zope.org:/tmp/cvs-serv23732/publisher/browser/tests

Modified Files:
	test_directives.py 
Log Message:
Here we go again. All tests have been run twice and passed. Sorry again for
the trouble I've caused. Anthony and Steve, I owe you guys are beer.

Converted the three most important packages that define ZCML directives
to the new ZCML architecture (using schemas):

- zope.app.component

- zope.app.browser.form

- zope.app.publisher.browser


=== Zope3/src/zope/app/publisher/browser/tests/test_directives.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_directives.py:1.19	Sat Aug  2 05:11:26 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_directives.py	Sat Aug  2 22:13:22 2003
@@ -53,11 +53,11 @@
     os.path.split(zope.app.publisher.browser.__file__)[0],
     'tests')
 
-template = """<zopeConfigure
+template = """<configure
    xmlns='http://namespaces.zope.org/zope'
    xmlns:browser='http://namespaces.zope.org/browser'>
    %s
-   </zopeConfigure>"""
+   </configure>"""
 
 request = Request(IBrowserPresentation)
 
@@ -698,12 +698,12 @@
              zope.app.security.registries.metaconfigure.definePermission" />
             </directives>
 
-            <permission id="XXX" title="xxx" />
+            <permission id="zope.TestPermission" title="Test permission" />
 
             <browser:pages
                   class="zope.component.tests.views.V1"
                   for="zope.component.tests.views.IC"
-                  permission="XXX"
+                  permission="zope.TestPermission"
                   >
 
                 <browser:page name="index.html" attribute="index" />
@@ -732,7 +732,7 @@
              zope.app.security.registries.metaconfigure.definePermission" />
             </directives>
 
-            <permission id="XXX" title="xxx" />
+            <permission id="zope.TestPermission" title="Test permission" />
 
             <browser:view
                   name="test"
@@ -896,12 +896,12 @@
                zope.app.security.registries.metaconfigure.definePermission" />
             </directives>
 
-            <permission id="XXX" title="xxx" />
+            <permission id="zope.TestPermission" title="Test permission" />
 
             <browser:page
                   name="xxx.html"
                   template="%s"
-                  permission="XXX"
+                  permission="zope.TestPermission"
                   for="zope.component.tests.views.IC" />
             """ % path
             ))




More information about the Zope3-Checkins mailing list