-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17.04.2009 15:37 Uhr, Kees Hink wrote:
> I have a field 'performance_code', which i want to create catalog indexes for.
> 
> Problem is that objects contained in objects of my content type will acquire 
> the
> value of its parent, so catalog queries for 'getPerformance_code' will also
> return brains for objects which don't actually have that field.
> 
> I tried setting 'index_method = context.aq_explicit().performance_code' in the
> schema, to no effect.
> 
> What to do?
> 

Create a method foo() within your class and create an index called
'foo'. Within foo() you can add your code taking care about acquisition.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknoss0ACgkQCJIWIbr9KYyspACdH7bmT4GjRtXBBZiH5e0ywmdR
DskAniGIFaXX0ROHsolfjDiQKFfi6Nby
=o23g
-----END PGP SIGNATURE-----
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to