Re: [Zope] Catalog a dictionary

2012-08-06 Thread Lennart Regebro
On Mon, Aug 6, 2012 at 2:53 PM, Giampiero Benvenuti wrote: > Hi, > > I just would like to index a string property of the Folder object in a proper > "searchebale" DateTime format. > Right now I have just a string property like 12:30:30 and I would like to > index it as DateTime(DateTime().Date()

Re: [Zope] Catalog a dictionary

2012-08-06 Thread Lennart Regebro
On Mon, Aug 6, 2012 at 9:37 AM, Giampiero Benvenuti wrote: > P.S. I know i can assign multiple attributes to an index in the catalog, > still I wonder why the above code doesn't work. I don't know, but first I'd like to know why you are doing this? The objects in the folder are already indexed, a

Re: [Zope] Catalog a dictionary

2012-08-06 Thread Giampiero Benvenuti
Hi Andreas, what I'm trying to do is indexing in a Catalog some Folder objects manipulating some properties. If I assign to the request the new key value everything works as expected. For instance: req=context.REQUEST for obj in context.objectValues('Folder'): req.set('city', obj.city+'