[Zope] ZCatalog : Z Class? then my challenge?

Hamzat Kamal k_hamzat@yahoo.com
Mon, 29 Jul 2002 03:11:11 -0700 (PDT)


I have a site which uses server date to iterate over the folders and
display the teasers / links which matches with the server date. I
have reviewed the codes several times bcos my host always complain
that the
iteration been performed on the server when the traffic is high bring
down the site. 

<dtml-call "REQUEST.set('mm',
ZopeTime().toZone('GMT+1').strftime('%d%m%y'))">
<dtml-in "news.objectValues(['Folder'])">
<dtml-let number=sequence-number path=id>
<dtml-if expr="number < _.int(num)">
<dtml-try>
<dtml-with "_.getitem(mm,0)">
<font face=arial size=-5>
<dtml-var expr="_.getitem(mm,1)[0:400]">... <br>
<a href="&dtml-ngrHome;news/&dtml-path;">
<img src="images/morex.gif" border="0" width="60" height="23">
</a><br>
<dtml-if expr="number < _.int(num)-1">
<hr size="2" width="75%">
</dtml-if>
</font>
</dtml-with>

<dtml-except>
</dtml-try>

</dtml-if>
</dtml-let>
</dtml-in>


Now alot of people have suggested I should use Catalog for the
searching. I considered the advise but finding it tough to do exactly
what the above code is doing for me.

I will appreciate any support you can avoid to render.

Regards. 



> Don't use Z Classes. They suck.
> 
> Simple enough?
> 
> Chris


> Hamzat Kamal wrote:
> > --- Chris Withers <chrisw@nipltd.com> wrote:
> > 
> >>Hamzat Kamal wrote:
> >>
> >>>Hi,
> >>>
> >>>Pls, what is a Z Class?
> >>
> >>A waste of time and energy leading to a deep pit of dispair ;-)
> >>
> >>cheers,
> >>
> >>Chris
> > 
> > 
> > Dear Chris,
> > 
> > I cannot really comprehend your msg. Kind explain to me better.
> > 
> > Thanks.


=====
Hamzat kamaldeen Ishola
Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria.
234 1 7749381, 234 08033011305
---
Making Mistake is not a problem but readiness to admit it.
Sentimental decisions are not mistakes but failures !!!
Mistake is an opportunity to see better !!!

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com