[Zope] problem in using Zcatalog : Help needed
Hamzat Kamal
k_hamzat@yahoo.com
Mon, 5 Aug 2002 08:23:47 -0700 (PDT)
Hi Max,
Thanks for your response then this is a the error encountered with
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: KeyError
Error Value: 050802
> > Hi All,
> >
> > I have this problem in using ZCatalog.
> >
> > I have the Zcatalog and the folders that contained the DTML
> > Documents in the root.
> >
>
>
> Ok I think I understand what you are trying to do here::
>
> <dtml-call "REQUEST.set('mm',
> ZopeTime().toZone('GMT+1').strftime('%d%m%y'))">
> <ul>
> <dtml-in "Zcat_Index_1_Dtml_Doc(id=mm)">
> <dtml-var expr="_.getitem(mm,1)[0:400]">... <br>
> <li>
> <a href="&dtml-absolute_url;"> More </a>
> </li>
> </dtml-in>
> </ul>
>
> I think your code could be expressed a little better like::
>
> <dtml-call "REQUEST.set('now',
> ZopeTime().toZone('GMT+1').strftime('%d%m%y'))">
> <ul>
> <dtml-in "Zcat_Index_1_Dtml_Doc(id=now)">
> <dtml-var "_.getitem(now,1)" size=400>... <br>
> <li>
> <a href="&dtml-absolute_url;"> More </a>
> </li>
> </dtml-in>
> </ul>
=====
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