RE: [Zope] ZCatalog: searching by date
-----Original Message----- From: Alice Gutman [mailto:aliceg@rescomp.berkeley.edu] Sent: Sunday, November 21, 1999 7:59 PM To: zope@zope.org Subject: [Zope] ZCatalog: searching by date
Hi,
I'm part of a student group at UC Berkeley, and I'm trying to use ZCatalog to allow users to search our site by keyword and date modified. But for some reason, the date field seems to be ignored when a search is conducted. Since the keyword part works just fine and I can't find anything wrong with my code, I am stumped. Does anyone have any suggestions? Here is my search_form method, in case that is the problem after all:
<snip> Are you sure your objects have the attribute 'date'? This is not a default attribute for any objects in zope. It looks like you got the idea for this code from the Zope site, which *does* use the attribute 'date' because we built a ZClass that all the objects subclass that defines 'date'. If you do not have a ZClass defining this attribute, then you probably want to change all the occourances of 'date' in your DTML to 'bobobase_modification_time'. -Michel
participants (1)
-
Michel Pelletier