Re: Catalog a dictionary

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.general
Message-ID <CAL0kPAWxT-5DNF4LuM-pr3KCPocDsKcho7JztXHiPzeYk9XBNQ@mail.gmail.com>
On Mon, Aug 6, 2012 at 2:53 PM, Giampiero Benvenuti
<giampiero.benvenuti-jacJaabyINpm6/[email protected]> 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()+' '+mystring)

Then make sure that the folder have an attribute that returns what you
want, and add an index that indexes that attribute.

The folder attribute can be acquired, which means if for example can
be a script in a skin folder, or it can be something you monkey-patch
to the folder. Or it can be calculated, or it can be a view (I think)
etc, etc.

//Lennart
_______________________________________________
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.