[Zope-Checkins]
SVN: Zope/branches/philikon-zope32-integration/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py
Make sure a virtual host monster is present in the
application object.
Florent Guillaume
fg at nuxeo.com
Tue Nov 1 16:57:40 EST 2005
Log message for revision 39832:
Make sure a virtual host monster is present in the application object.
Changed:
U Zope/branches/philikon-zope32-integration/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py
-=-
Modified: Zope/branches/philikon-zope32-integration/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py
===================================================================
--- Zope/branches/philikon-zope32-integration/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py 2005-11-01 21:49:04 UTC (rev 39831)
+++ Zope/branches/philikon-zope32-integration/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py 2005-11-01 21:57:40 UTC (rev 39832)
@@ -26,8 +26,10 @@
transaction.begin()
self.app = makerequest(Zope2.app())
try:
- #self.app.manage_addProduct['SiteAccess'].manage_addVirtualHostMonster('VHM')
- # now we have a VHM as virtual_hosting per default
+ if not hasattr(self.app, 'virtual_hosting'):
+ # If ZopeLite was imported, we have no default virtual host monster
+ from Products.SiteAccess.VirtualHostMonster import manage_addVirtualHostMonster
+ manage_addVirtualHostMonster(self.app, 'virtual_hosting')
self.app.manage_addFolder('folder')
self.app.folder.manage_addDTMLMethod('doc', '')
self.app.REQUEST.set('PARENTS', [self.app])
More information about the Zope-Checkins
mailing list