[Zope] bobobase_creation_time

Deepak, V v_deepak@mentorg.com
Wed, 21 Aug 2002 16:38:19 +0530


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_01C24903.0E9018EF
Content-Type: text/plain;
	charset="iso-8859-1"

I use the following code to show menu of items ordered by the creation time.

<dtml-in expr="a.b.objectValues('Folder')" sort="bobobase_creation_time">
<a href="&dtml-absolute_url;"><dtml-var title_or_id></a>
</dtml-in>

this doesn't do what I expect it to do.
The items are reordered almost all times I select one of them.
And the reordering is not consistent. Random behavior is seen.
Please throw some light.

------_=_NextPart_001_01C24903.0E9018EF
Content-Type: text/html;
	charset="iso-8859-1"
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=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2655.35">
<TITLE>bobobase_creation_time</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I use the following code to show menu =
of items ordered by the creation time.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&lt;dtml-in expr=3D&quot;</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">a</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">.</FONT><FONT SIZE=3D2 FACE=3D"Arial">b</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">.objectValues('Folder')&quot; =
sort=3D&quot;bobobase_creation_time&quot;&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&lt;a =
href=3D&quot;&amp;dtml-absolute_url;&quot;&gt;&lt;dtml-var =
title_or_id&gt;&lt;/a&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&lt;/dtml-in&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">this doesn't do what I expect it to =
do.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">The items are reordered almost all =
times I select one of them.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">And the reordering is not consistent. =
Random behavior is seen.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Please throw some light.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C24903.0E9018EF--