[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Removed trailing whitespace.

Albertas Agejevas alga at pov.lt
Fri May 21 21:57:18 EDT 2004


Log message for revision 24873:

Removed trailing whitespace.




-=-
Modified: Zope3/trunk/src/zope/app/traversing/namespace.py
===================================================================
--- Zope3/trunk/src/zope/app/traversing/namespace.py	2004-05-22 01:57:03 UTC (rev 24872)
+++ Zope3/trunk/src/zope/app/traversing/namespace.py	2004-05-22 01:57:18 UTC (rev 24873)
@@ -124,10 +124,10 @@
     ('', '++hello world++foo')
     >>> nsParse('+++acquire+++foo')
     ('', '+++acquire+++foo')
-    
 
+
     But it may also be a @@foo, which implies the view namespace:
-    
+
     >>> nsParse('@@foo')
     ('view', 'foo')
 
@@ -158,7 +158,7 @@
     return resource
 
 def queryResourceInContext(ob, name, request, default=None):
-    resource_service = component.getService(ob, Presentation)
+    resource_service = component.getService(Presentation, ob)
     resource = resource_service.queryResource(name, request)
     if resource is None:
         return default
@@ -178,7 +178,7 @@
 class SimpleHandler(object):
 
     zope.interface.implements(ITraversable)
-    
+
     def __init__(self, context, request=None):
         """Simple hadlers can be usd as adapters or views
 
@@ -187,7 +187,7 @@
 
               >>> SimpleHandler(42).context
               42
-              
+
               >>> SimpleHandler(42, 43).context
               42
            """
@@ -271,7 +271,7 @@
               >>> adapter = attr(ob)
               >>> adapter.traverse('keys', ())()
               ['x']
-              
+
            """
         return getattr(self.context, name)
 
@@ -294,7 +294,7 @@
 from zope.app.traversing.interfaces import IContainmentRoot
 
 class etc(SimpleHandler):
-    
+
     def traverse(self, name, ignored):
         # XXX
 
@@ -333,11 +333,11 @@
 class view(object):
 
     zope.interface.implements(ITraversable)
-    
+
     def __init__(self, context, request):
         self.context = context
         self.request = request
-    
+
     def traverse(self, name, ignored):
         view = component.queryView(self.context, name, self.request)
         if view is None:
@@ -355,7 +355,7 @@
         return resource
 
 class skin(view):
-    
+
     def traverse(self, name, ignored):
         self.request.shiftNameToApplication()
         self.request.setPresentationSkin(name)
@@ -363,11 +363,11 @@
         return self.context
 
 class vh(view):
-    
+
     def traverse(self, name, ignored):
 
         request = self.request
-        
+
         traversal_stack = request.getTraversalStack()
         app_names = []
 

Modified: Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_processdefinition.py
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_processdefinition.py	2004-05-22 01:57:03 UTC (rev 24872)
+++ Zope3/trunk/src/zope/app/workflow/stateful/browser/ftests/test_processdefinition.py	2004-05-22 01:57:18 UTC (rev 24873)
@@ -30,13 +30,13 @@
         response = self.publish(
             self.basepath + '/contents.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
-        
+
         expr = 'zope.app.browser.add.StatefulProcessDefinition.f([0-9]*)'
         m = re.search(expr, response.getBody())
         type_name = m.group(0)
-        
+
         response = self.publish(
             self.basepath + '/contents.html',
             basic='mgr:mgrpw',
@@ -47,15 +47,15 @@
         response = self.publish(
             self.basepath + '/pd/index.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
         body = response.getBody()
-        self.assert_(body.find("I'm a stateful ProcessInstance") >= 0)        
+        self.assert_(body.find("I'm a stateful ProcessInstance") >= 0)
 
         response = self.publish(
             self.basepath + '/pd/edit.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
         body = ' '.join(response.getBody().split())
         self.assert_(body.find('Set Workflow-Relevant Data Schema') >= 0)
@@ -63,7 +63,7 @@
         response = self.publish(
             self.basepath + '/pd/registration.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
         body = ' '.join(response.getBody().split())
         self.assert_(body.find('This object is not currently active.') >=0)
@@ -71,27 +71,27 @@
         response = self.publish(
             self.basepath + '/pd/importexport.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
         body = ' '.join(response.getBody().split())
-        self.assert_(body.find('Import / Export Process Definitions:') >= 0)       
+        self.assert_(body.find('Import / Export Process Definitions:') >= 0)
         self.assert_(body.find(
             '<a href="states/contents.html">Manage States</a>') >=0 )
         self.assert_(body.find(
-            '<a href="transitions/contents.html">Manage Transitions</a>') >=0)  
+            '<a href="transitions/contents.html">Manage Transitions</a>') >=0)
 
     def test_transitions(self):
         response = self.publish(
             self.basepath + '/pd/transitions/contents.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
 
     def test_states(self):
         response = self.publish(
             self.basepath + '/pd/states/contents.html',
             basic='mgr:mgrpw')
-        
+
         self.assertEqual(response.getStatus(), 200)
         body = ' '.join(response.getBody().split())
         self.assert_(body.find('INITIAL') >= 0)




More information about the Zope3-Checkins mailing list