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

Guido van Rossum guido@python.org
Mon, 23 Dec 2002 18:53:03 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	test_directives.py 
Log Message:
Lots of nasty renames.


=== Zope3/src/zope/app/publisher/xmlrpc/tests/test_directives.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/publisher/xmlrpc/tests/test_directives.py:1.1.2.1	Mon Dec 23 14:32:08 2002
+++ Zope3/src/zope/app/publisher/xmlrpc/tests/test_directives.py	Mon Dec 23 18:53:02 2002
@@ -20,7 +20,7 @@
 
 from zope.configuration.xmlconfig import xmlconfig, XMLConfig
 from zope.configuration.exceptions import ConfigurationError
-from zope.component.tests.test_views import IC, V1, VZMI, R1, RZMI
+from zope.component.tests.views import IC, V1, VZMI, R1, RZMI
 from zope.component import getView, queryView
 from zope.component import getDefaultViewName
 from zope.app.tests.placelesssetup import PlacelessSetup
@@ -31,7 +31,7 @@
 
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPresentation
 
-import Zope.App.Publisher.XMLRPC
+import zope.app.publisher.xmlrpc
 
 template = """<zopeConfigure
    xmlns='http://namespaces.zope.org/zope'
@@ -50,7 +50,7 @@
 
     def setUp(self):
         PlacelessSetup.setUp(self)
-        XMLConfig('meta.zcml', Zope.App.Publisher.XMLRPC)()
+        XMLConfig('meta.zcml', zope.app.publisher.xmlrpc)()
 
     def testView(self):
         self.assertEqual(queryView(ob, 'test', request),
@@ -59,8 +59,8 @@
         xmlconfig(StringIO(template % (
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" /> 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" /> 
             """
             ))) 
         
@@ -73,10 +73,10 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   permission="Zope.Public"
-              allowed_interface="Zope.ComponentArchitecture.tests.TestViews.IV"
+              allowed_interface="zope.component.tests.views.IV"
                   /> 
             """
             ))
@@ -91,8 +91,8 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   permission="Zope.Public"
                   allowed_methods="action"
                   /> 
@@ -109,11 +109,11 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   permission="Zope.Public"
                   allowed_methods="action"
-              allowed_interface="Zope.ComponentArchitecture.tests.TestViews.IV"
+              allowed_interface="zope.component.tests.views.IV"
                   /> 
             """
             ))
@@ -127,11 +127,11 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   permission="Zope.Public"
                   allowed_methods="action index"
-              allowed_interface="Zope.ComponentArchitecture.tests.TestViews.IV"
+              allowed_interface="zope.component.tests.views.IV"
                   /> 
             """
             ))
@@ -148,8 +148,8 @@
             StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   allowed_methods="action index"
                   /> 
             """
@@ -163,8 +163,8 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC">
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC">
 
                 <xmlrpc:method name="index.html" attribute="index" /> 
                 <xmlrpc:method name="action.html" attribute="action" /> 
@@ -185,8 +185,8 @@
         xmlconfig(StringIO(template %
             """
             <xmlrpc:view name="test"
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC">
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC">
 
                 <xmlrpc:method name="index.html" attribute="index" /> 
                 <xmlrpc:method name="action.html" attribute="action" /> 
@@ -213,14 +213,14 @@
               <directive name="permission"
                  attributes="id title description"
                  handler="
-               Zope.App.Security.Registries.metaConfigure.definePermission" />
+               zope.app.security.registries.metaconfigure.definePermission" />
             </directives>
 
             <permission id="XXX" title="xxx" />
 
             <xmlrpc:view
-                  factory="Zope.ComponentArchitecture.tests.TestViews.V1"
-                  for="Zope.ComponentArchitecture.tests.TestViews.IC" 
+                  factory="zope.component.tests.views.V1"
+                  for="zope.component.tests.views.IC" 
                   permission="XXX">
 
                 <xmlrpc:method name="index.html" attribute="index" />