[Zope3-checkins] CVS: Zope3/src/zope/app/browser/index/text - control.py:1.11
Marius Gedminas
mgedmin@codeworks.lt
Thu, 1 May 2003 10:13:37 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/index/text
In directory cvs.zope.org:/tmp/cvs-serv18447/src/zope/app/browser/index/text
Modified Files:
control.py
Log Message:
Text index uses a physical path instead of a URL in at least one place. This
will break under some cases of virtual hosting. Added an XXX comment for now;
hopefully I'll find the time to fix it properly later.
=== Zope3/src/zope/app/browser/index/text/control.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/index/text/control.py:1.10 Wed Apr 30 19:37:52 2003
+++ Zope3/src/zope/app/browser/index/text/control.py Thu May 1 10:13:36 2003
@@ -80,6 +80,8 @@
def _cookInfo(self, hubid, score):
location = canonicalPath(self.hub.getPath(hubid))
+ # XXX `location` is later used as a URL in a page template, using a
+ # physical path instead of absolute_url will break virtual hosting.
scoreLabel = "%.1f%%" % (100.0 * score)
result = {
'location': location,