Aaron Payne:

> Hi all,

Hi Aaron.

> I have a zcatalog. I use the methods generated by Z Search Interface to 
> search the catalog. These methods will not recognize new additions to the 
> catalog. After adding a coupon instance, the catalog search fails to find 
> the new coupon or even the the old coupons.
> The add method of the zclass does have the statement: <dtml-call 
> reindex_object>.  The ZClass is subclassed catalogaware.
> There is a bug in Zope documented in the mailing lists.  I found and tried 
> the following code for my zclass add method:

You have the dtml-if statement in the wrong place if you want the object to
be created and then redirect. First, try it without the dtml-if statement
like so.

> <HTML>
>   <HEAD><TITLE>Add Coupon ZClass</TITLE></HEAD>
>   <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">

>   <dtml-with "CouponProductZClass.createInObjectManager(REQUEST['id'], 
>    <dtml-call "propertysheets.Basic.manage_changeProperties(
>                     REQUEST)">
>    <dtml-call reindex_object>
>   </dtml-with>
>   </body></html>

Does it index it?

Jason Spisak
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for

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

Reply via email to