[Zope-dev] getURL and url_quoting
lambert muhr
lmuhr@web.de
Sun, 27 Jan 2002 21:54:10 +0100
I am cataloging mysql-data with zcatalog following the how-to provided by
zope-member rbicker. this works fine. since I use batch-processing to build
web pages containing e.g. 3 mysql data records per page, the uid's, hence
the url's of the zcatalog's objects are e.g.:
/base/select_mm_url/2/show_intro?start=4
this url, I build dynamically from a python script, which catalogs the mysql
data:
for chapter in container.search_mms():
container.catalog_object(chapter,'/base/select_mm_url/' + chapter.mm_id
+ '/show_intro?start=' + chapter.mms_id)
[works fine ...]
in the search results' page I use the following code to link to the results:
<A HREF="&dtml.-getURL;">link</a>
unfortunately, the link on the web page turns out like this:
/base/select_mm_url/2/show_intro%3fstart%3d4
what is my mistake? I was believing I would have to turn off the automatic
url-quoting using the entity reference '&dtml ....;' by putting the '.'
after '&dtml'. but it seems, this doesn't work with 'getURL'. if so, what
other possibilities do I have to "get" the results' "url"?
thanks for any hint.
lambert