[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - contents.py:1.7

Albertas Agejevas alga@codeworks.lt
Fri, 31 Jan 2003 05:51:47 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv30858/src/zope/app/browser/container

Modified Files:
	contents.py 
Log Message:
Added a getAdapter to IZopeContainer to get context propagated.


=== Zope3/src/zope/app/browser/container/contents.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.6	Fri Jan 17 08:35:45 2003
+++ Zope3/src/zope/app/browser/container/contents.py	Fri Jan 31 05:51:45 2003
@@ -71,7 +71,8 @@
         self.request.response.redirect('@@contents.html')
 
     def listContentInfo(self):
-        return map(self._extractContentInfo, self.context.items())
+        return map(self._extractContentInfo,
+                   getAdapter(self.context, IZopeContainer).items())
 
     contents = ViewPageTemplateFile('main.pt')
     contentsMacros = contents