[Zope3-checkins] CVS: Zope3/src/zope/app/browser - onlinehelp.py:1.11
Stephan Richter
srichter@cosmos.phy.tufts.edu
Tue, 15 Jul 2003 10:46:39 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv31307/src/zope/app/browser
Modified Files:
onlinehelp.py
Log Message:
Fixed help topic URL generation
Made the ZCML identifier truely unique
=== Zope3/src/zope/app/browser/onlinehelp.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/onlinehelp.py:1.10 Tue Jul 15 10:20:06 2003
+++ Zope3/src/zope/app/browser/onlinehelp.py Tue Jul 15 10:46:04 2003
@@ -69,7 +69,8 @@
continue
for topic in help.getTopicsForInterfaceAndView(iface, spec[4]):
parents = getParents(topic)
- path = map(getName, parents[:-1]+[topic])
+ path = map(getName, [topic]+parents[:-1])
+ path.reverse()
url = getView(obj, 'absolute_url', self.request)()
url += '/++help++/'+'/'.join(path)
topics.append(FindResult(url, topic))