collective / Products.DateRangeInRangeIndex

Zope Index to query a date range on two target date indexes (start, end)
Other
2 stars 0 forks source link

question about index not beeing updated #1

Closed objectValues closed 9 years ago

objectValues commented 10 years ago

Hi Jens,

I have installed the product (Products.DateRangeInRangeIndex 1.3) on a Zope 2.11.4 with python 2.4.

I have in my application Event like objects with start_date and end_date properties (floats). I have created a DateRangeInRangeIndex index named idx_range with start index = start_date and end index = end_date.

In my application I have an edit form for Event like objects and every time time an event is modified I recatalog it (I call uncatalog_object and catalog_object from the catalog).

I noticed that the idx_range is not being updated. In the product's code I see that the methods index_object and unindex_object are empty.

Now, how can I get the index being updated when I modify an Event? Am I doing something wrong? Could you please help me with some pointers?

Thank you very much, Dragos

objectValues commented 10 years ago

Hi again,

I found out what I was doing wrong: my indexes were FieldIndex and not DateIndex and in my query I was using the names of the indexes instead of 'start'/'end'.

Sorry about that, Dragos