[Zope-CVS] SVN: book/trunk/principalinfo/info.py Simplified test setup.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 26 15:37:52 EDT 2004


Log message for revision 27282:
  Simplified test setup.
  


Changed:
  U   book/trunk/principalinfo/info.py


-=-
Modified: book/trunk/principalinfo/info.py
===================================================================
--- book/trunk/principalinfo/info.py	2004-08-26 17:48:56 UTC (rev 27281)
+++ book/trunk/principalinfo/info.py	2004-08-26 19:37:52 UTC (rev 27282)
@@ -36,9 +36,9 @@
     >>> from zope.app.principalannotation import PrincipalAnnotationService
 
     >>> site = setup.placefulSetUp(site=True)
-    >>> root_sm = zapi.getGlobalServices()
-    >>> root_sm.defineService('PrincipalAnnotation',
-    ...                       IPrincipalAnnotationService)
+    >>> sm = zapi.getGlobalServices()
+    >>> sm.defineService('PrincipalAnnotation',
+    ...                  IPrincipalAnnotationService)
     >>> svc = setup.addService(site.getSiteManager(), 'PrincipalAnnotation',
     ...                        PrincipalAnnotationService())
 
@@ -99,4 +99,3 @@
             self.info[name] = value
         else:
             super(PrincipalInformation, self).__setattr__(name, value)
-    



More information about the Zope-CVS mailing list