[Zope] Catalog a dictionary
Andreas Jung
lists at zopyx.com
Mon Aug 6 05:24:31 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Giampiero Benvenuti wrote:
> Hello!
>
> can you please give me some hints on how to catalog a list of
> dictionaries? Is it possible?
What have you tried? What exactly is not working?
>
> L= [{'id':'1','lastName':'Rossi','firstName':'Mario'}, {...), etc..]
>
> for d in L: context.Mycatalog.catalog_object( d, d['id'])
>
>
Are you use that you created the related indexes that you are using for
indexes?
Please provide a reasonable description of the problem (if you have one).
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJQH1UOAAoJEADcfz7u4AZjbbwLwIj/kqgzC8DazRlomyO4Auv0
B751yKOSYWo+v6j1Ren8SFfuImie3d98oaOp5w2RHL7TyqDU9iEbfDFhTjKmFE9t
KeihBckCkBcsquE04Uih5vnKNVh1IOZhD6VB0yebtr4776bm7HBXi4b8ZVfWjH1Z
NV8HBMRku+0f4M0X8MyWGETSat5wCBO8WnnoYCsHGxpE2VNvgYAIk8LcXGdZsExa
HGEFmmXJy1Z8NAMrGPMQurw9JfBrC7LWDd4feEmXMw6az06kkZWNnp42Zp9YLzcR
tBMwigyZLMNOO9Tt+s+orGKWbKzKxoGqU1/uxGngpR+8/n4bYgFv86/46QwvMFqF
ScInrrYwufvqQUo9jks4HDv+BoRg6v1tUkKipu50ICXk7f1nwRsSy0OGDGmSegN+
JeGcFvUCJb2y0t6/ruBNTiM8Gf1cKr50Z6M5I+lG09Hoyl0iyYwdJu0s8RoGMTOQ
WAYeUXCbzu/CKevZIcXvU6qP/mx5Bfc=
=XvKh
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://mail.zope.org/pipermail/zope/attachments/20120806/834d8a63/attachment.vcf>
More information about the Zope
mailing list