[Zope3-checkins] CVS: Zope3/src/zope/app/services - service.py:1.32

Jim Fulton cvs-admin at zope.org
Fri Dec 5 09:15:28 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv14130/src/zope/app/services

Modified Files:
	service.py 
Log Message:
Fixed a bug in creating local sites.

A local site has a next attribute that referes to teh containing site.
It needs to make sire that the next attribute os not security wrapped.

Also, when a site is added, it needs to add itself as a subsite of
it's containing site. The method for doing this did not have a
secirity assertion.


=== Zope3/src/zope/app/services/service.py 1.31 => 1.32 ===
--- Zope3/src/zope/app/services/service.py:1.31	Fri Nov 21 12:09:55 2003
+++ Zope3/src/zope/app/services/service.py	Fri Dec  5 09:15:27 2003
@@ -89,7 +89,7 @@
             if site is None:
                 raise TypeError("Not enough context information")
             if ISite.isImplementedBy(site):
-                self.next = site.getSiteManager()
+                self.next = removeAllProxies(site.getSiteManager())
                 self.next.addSubsite(self)
                 return
 




More information about the Zope3-Checkins mailing list