[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests -
test_browserpublication.py:1.18 test_xmlrpcpublication.py:1.2
test_zopepublication.py:1.16
Jim Fulton
jim at zope.com
Tue Sep 2 17:47:20 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/publication/tests
In directory cvs.zope.org:/tmp/cvs-serv16881/src/zope/app/publication/tests
Modified Files:
test_browserpublication.py test_xmlrpcpublication.py
test_zopepublication.py
Log Message:
Added ISite, which is a marker interface indicating that an object is
a site.
When an object is made into a site, ISite is declared for it.
Change to test whether something is a site by testing whether
it (declares it) implements ISite.
=== Zope3/src/zope/app/publication/tests/test_browserpublication.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.17 Mon Aug 4 19:13:15 2003
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py Tue Sep 2 16:46:49 2003
@@ -284,7 +284,7 @@
def testTraverseNameServices(self):
pub = self.klass(self.db)
class C:
- def getServiceManager(self):
+ def getSiteManager(self):
return SimpleObject(1)
ob = C()
r = self._createRequest('/++etc++site',pub)
=== Zope3/src/zope/app/publication/tests/test_xmlrpcpublication.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/publication/tests/test_xmlrpcpublication.py:1.1 Mon Aug 4 19:19:07 2003
+++ Zope3/src/zope/app/publication/tests/test_xmlrpcpublication.py Tue Sep 2 16:46:49 2003
@@ -148,7 +148,7 @@
def testTraverseNameServices(self):
pub = self.klass(self.db)
class C:
- def getServiceManager(self):
+ def getSiteManager(self):
return SimpleObject(1)
ob = C()
r = self._createRequest('/++etc++site',pub)
=== Zope3/src/zope/app/publication/tests/test_zopepublication.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/publication/tests/test_zopepublication.py:1.15 Fri Jun 6 16:25:30 2003
+++ Zope3/src/zope/app/publication/tests/test_zopepublication.py Tue Sep 2 16:46:49 2003
@@ -283,9 +283,9 @@
app.setObject('f1', Folder())
f1 = app['f1']
f1.setObject('f2', Folder())
- f1.setServiceManager(ServiceManager(AuthService1()))
+ f1.setSiteManager(ServiceManager(AuthService1()))
f2 = f1['f2']
- f2.setServiceManager(ServiceManager(AuthService2()))
+ f2.setSiteManager(ServiceManager(AuthService2()))
get_transaction().commit()
request = TestRequest('/f1/f2')
More information about the Zope3-Checkins
mailing list