Catalog a dictionary

Giampiero Benvenuti <giampiero.benvenuti-jacJaabyINpm6/[email protected]>
Newsgroups gmane.comp.web.zope.general
Message-ID <[email protected]>
Hello!

can you please give me some hints on how to catalog a list of dictionaries? Is it possible?

L= [{'id':'1','lastName':'Rossi','firstName':'Mario'}, {...), etc..]

 for d in L:
	context.Mycatalog.catalog_object( d, d['id'])

Thanks so much in advance!

GP

_______________________________________________
Zope maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.