[Zope] Catalog a dictionary

Giampiero Benvenuti giampiero.benvenuti at chiaroscuro.com
Fri Aug 3 11:13:34 UTC 2012


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



More information about the Zope mailing list