[Zope] Attribute error : redirect encounter with build simple Zclass

Hamzat Kamal k_hamzat@yahoo.com
Mon, 29 Jul 2002 04:09:21 -0700 (PDT)


> On Saturday 27 July 2002 00:56, Hamzat Kamal wrote:
> > Hi,
> >
> > I was facing this error when using How to "Build a simple ZClass.

> well, you dont need to include REQUEST,RESPONSE,URL1.  try without
> manage_addIndex('username','FieldIndex')
> 
> i'll update the howto

Yeap,

The error is off. And i assume it should be working fine. Then this
is my really problem.

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. Now, how can I be able to use
the ZClass above to achieve my aim.

I will appreciate any support you can avoid to render.

Thanks in anticipation.



=====
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