[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - icon.py:1.3
Steve Alexander
steve@cat-box.net
Sat, 28 Dec 2002 12:50:01 -0500
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv912/src/zope/app/publisher/browser
Modified Files:
icon.py
Log Message:
Compressed various independent modules in zope.app.traversing into
far fewer modules.
Also, changed the place where the textindex lives to one level higher.
=== Zope3/src/zope/app/publisher/browser/icon.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/publisher/browser/icon.py:1.2 Sat Dec 28 11:23:04 2002
+++ Zope3/src/zope/app/publisher/browser/icon.py Sat Dec 28 12:49:30 2002
@@ -23,7 +23,7 @@
from zope.app.component.metaconfigure import handler
from zope.configuration.action import Action
from zope.app.publisher.browser import metaconfigure
-from zope.app.traversing.getresource import getResource
+from zope.app.traversing.namespace import getResourceInContext
from zope.publisher.interfaces.browser import IBrowserPresentation
from zope.configuration.exceptions import ConfigurationError
@@ -40,14 +40,14 @@
self.alt = alt
def __call__(self):
- resource = getResource(self.context, self.rname, self.request)
+ resource = getResourceInContext(self.context, self.rname, self.request)
src = resource()
return ('<img src="%s" alt="%s" width="16" height="16" border="0" />'
% (src, self.alt))
def url(self):
- resource = getResource(self.context, self.rname, self.request)
+ resource = getResourceInContext(self.context, self.rname, self.request)
src = resource()
return src