[Zope] Catalog Question

Patel, Tejash Tejash.Patel@dowjones.com
Thu, 24 Apr 2003 12:02:48 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C30A7A.F3535B00
Content-Type: text/plain

All,

I followed an example and created a catalog for my site, its id = Catalog.

I created three indexes

Name					Index Type
Id 					Fieldname
Title					TextIndex
Bobobase_modification_time		DateIndex
created					FieldIndex
modified				FieldIndex

I create three meta_type

Title
Bobobase_modification_time
Getid
modified

Then I executed a find object of a 3rd party product which I have modified
to allow auto cataloging.
If works great.

My problem is the created and modified times are not correct and do not
change if I edit the object.

The Bobobase_modification_time date and time is correct, but this changes
every time I upload or change the object.

What I need is a create date and modified so I can search on objects that
where created/modified in the past x hours

Is there a way for me to trouble shoot where the time is being set for
created and modified.

Thanks in advance

TP





------_=_NextPart_001_01C30A7A.F3535B00
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>Catalog Question</TITLE>
</HEAD>
<BODY>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">All,</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I followed an example and =
created a catalog for my site, its id =3D Catalog.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I created three =
indexes</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Name&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Index Type</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Id</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"> &nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fieldname</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Title</FONT>&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">TextIndex</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Arial">Bobobase_modification_time</FONT>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">DateIndex</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">c</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">reated</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">FieldIndex</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">m</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">odified</FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">FieldIndex</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">I create three =
meta_type</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Title</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 =
FACE=3D"Arial">Bobobase_modification_time</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Getid</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">modified</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Then</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">I</FONT><FONT SIZE=3D2 FACE=3D"Arial"> executed =
a find object of a 3</FONT><SUP><FONT SIZE=3D2 =
FACE=3D"Arial">rd</FONT></SUP><FONT SIZE=3D2 FACE=3D"Arial"> party =
product which</FONT> <FONT SIZE=3D2 FACE=3D"Arial">I</FONT><FONT =
SIZE=3D2 FACE=3D"Arial"> have modified to allow auto =
cataloging.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">If works =
great.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">My problem is the created =
and modified times are not correct and do not change if</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">I</FONT><FONT SIZE=3D2 FACE=3D"Arial"></FONT> =
<FONT SIZE=3D2 FACE=3D"Arial">edit the object.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">The</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">Bobobase_modification_tim</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">e date and time is correct, but this changes every =
time</FONT> <FONT SIZE=3D2 FACE=3D"Arial">I</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"> upload</FONT><FONT SIZE=3D2 FACE=3D"Arial"> or change =
the object.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">What</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">I</FONT><FONT SIZE=3D2 FACE=3D"Arial"> need is =
a create date and modified so</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">I</FONT><FONT SIZE=3D2 FACE=3D"Arial"> can search on =
objects that where created</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">/modified</FONT><FONT SIZE=3D2 FACE=3D"Arial"> in the =
past x hou</FONT><FONT SIZE=3D2 FACE=3D"Arial">rs</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Is there a way for me to =
trouble shoot where the time is being set for created and =
modified.</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">Thanks in =
advance</FONT></P>

<P ALIGN=3DLEFT><FONT SIZE=3D2 FACE=3D"Arial">TP</FONT></P>
<BR>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C30A7A.F3535B00--