[Zope] a simple question about find

Brad Knotwell b.knotwell@f5.com
Fri, 12 Jul 2002 14:07:18 -0700


Hope it's not bad form to reply to your own post.  Anyhow, if anyone
else wants find to be able to correctly access objects with
URL-illegal characters in their name.  Applying the following patch
worked for me (I can't really see how it'd break anything):


--- findResult.dtml.orig        Fri Jul 12 06:00:04 2002
+++ findResult.dtml     Fri Jul 12 06:02:55 2002
@@ -80,13 +80,13 @@
 <TR class="row-hilite">
 </dtml-if>
   <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="16">
-  <A HREF="&dtml-sequence-key;/manage_workspace">
+  <A HREF="<dtml-var sequence-key url_quote>/manage_workspace">
   <IMG SRC="&dtml-BASEPATH1;/&dtml-icon;"
    ALT="[<dtml-var meta_type>]" BORDER="0"></A>
   </TD>
   <TD ALIGN="LEFT" VALIGN="TOP">
   <div class="list-item">
-  <A HREF="&dtml-sequence-key;/manage_workspace">
+  <A HREF="<dtml-var sequence-key url_quote>/manage_workspace">
   &dtml-sequence-key;
   <dtml-if title>
   (&dtml-title;)

--Brad


Brad Knotwell writes:
 > 
 > Hello all--
 > 
 > I've successfully added a catalog to search for my attributes in my
 > custom ZClass.  Zope finds and displays my objects correctly.
 > However, the URL to access the object is broken.  The object IDs are
 > not URL-encoded correctly and the spaces in some of my object IDs
 > cause problems.
 > 
 > Are spaces disallowed as object IDs (so far, Zope has only complained
 > when I tried to add an object with a forward slash in the name)?  Or
 > (more likely IMO), is this a configuration option that I've missed?
 > 
 > Thanks in advance.
 > 
 > --Brad
 > 
 > 
 > 
 > 
 > _______________________________________________
 > Zope maillist  -  Zope@zope.org
 > http://lists.zope.org/mailman/listinfo/zope
 > **   No cross posts or HTML encoding!  **
 > (Related lists - 
 >  http://lists.zope.org/mailman/listinfo/zope-announce
 >  http://lists.zope.org/mailman/listinfo/zope-dev )