Re: [Zope-dev] getURL and url_quoting

2002-01-28 Thread Chris Withers

Hi lambert,

You question is better suited to the [EMAIL PROTECTED] list.

zope-dev is for the development of Zope not the development of applications with
Zope.

lambert muhr wrote:
 
 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?

The entity syntax for DTML (dtml-;) automatically url-quotes the result.

I'd use PageTemplates if I were you...

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] getURL and url_quoting

2002-01-27 Thread lambert muhr

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



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )