[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index/text - index.py:1.8
Guido van Rossum
guido@python.org
Mon, 9 Dec 2002 17:02:25 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/index/text
In directory cvs.zope.org:/tmp/cvs-serv29034
Modified Files:
index.py
Log Message:
Remove view helpers -- these are no longer used.
=== Zope3/lib/python/Zope/App/index/text/index.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/index/text/index.py:1.7 Fri Dec 6 09:49:11 2002
+++ Zope3/lib/python/Zope/App/index/text/index.py Mon Dec 9 17:02:23 2002
@@ -99,33 +99,3 @@
if texts is not None:
wrapped_self.index_doc(hubid, texts)
_update = ContextMethod(_update)
-
- # Helpers for the view (XXX should be in a separate view class!)
-
- def hubid2location(wrapped_self, hubid):
- channel = getService(wrapped_self, "ObjectHub")
- try:
- return locationAsUnicode(channel.getLocation(hubid))
- except NotFoundError:
- return ""
- hubid2location = ContextMethod(hubid2location)
-
- def hubid2object(wrapped_self, hubid):
- channel = getService(wrapped_self, "ObjectHub")
- try:
- return channel.getObject(hubid)
- except NotFoundError:
- return ""
- hubid2object = ContextMethod(hubid2object)
-
- def hubid2title(wrapped_self, hubid):
- channel = getService(wrapped_self, "ObjectHub")
- try:
- object = channel.getObject(hubid)
- except NotFoundError:
- return ""
- dc = queryAdapter(object, IZopeDublinCore, context=wrapped_self)
- if dc is None:
- return ""
- return dc.title
- hubid2title = ContextMethod(hubid2title)