[Zope] using getitem()
Sir K
k_hamzat@yahoo.com
Wed, 7 Aug 2002 05:17:31 -0700 (PDT)
--- Dieter Maurer <dieter@handshake.de> wrote:
> Hamzat Kamal writes:
> > I have wanted to use getitem() in a Dtml Method to render docs "now"
> > which are located in the subfolders where the Dtml Method is .
> >
> > <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=100>... <br>
> > <li>
> > <a href="&dtml-absolute_url;"> More </a>
> > </li>
> > </dtml-in>
> > </ul>
> >
> > How do I refference these subfoders so that those Docs can be
> > rendered by the getitem().
> What happens? What goes wrong?
---
Thanks Dieter,
What I noticed was that without this statement ;
<dtml-var "_.getitem(now,1)" size=100>... <br>
the absolute_url displayed but when I included the statement this was the
error i got ;
Error Type: KeyError
Error Value: 070802
Meaning that the getitem can not get the doc "now" which is 070802.
Pls, how do I make getitem to render this doc "now".
Thanks in anticipation.
=====
Hamzat kamaldeen Ishola Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 --- If Mistake is an opportunity to see better, then it is not a problem but readiness to admit it. Sentimental decisions are not mistakes but failures !!!
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com