[Zope] Nested dtml-with issue....

Schmidt, Allen J. aschmidt@nv.cc.va.us
Tue, 13 Feb 2001 18:16:32 -0500


Maybe so...but that is not the issue at this point.
The way it is below works well...as long as the dates are hardcoded.
I need date VARIABLES to replace the hardcoded values there now.

I have tried:
<dtml-let year="_.str(ZopeTime().year())">
<dtml-call "REQUEST.set('yearVariable',ZopeTime().year())">

using several techniques and dropping the variable name where the dates are
and I always get key errors.

I will try your suggestion and one earlier about using ZCatalogs, but it
would really help to get this working now until then.

Thanks!!!

-----Original Message-----
From: Dieter Maurer
To: Schmidt, Allen J.
Cc: 'zope@zope.org'
Sent: 2/13/2001 3:03 PM
Subject: Re: [Zope] Nested dtml-with issue....

Schmidt, Allen J. writes:
 > ROOT
 >  /News
 >    /Web
 >      /2001   (will vary with year)
 >        /022001   (will vary with monthyear)
 >          /02132001   (will vary with daymonthyear)
 > 
 > 
 > Inside the News folder is a DTML method which digs down the folder
structure
 > to 
 > build a single web page with news summaries from the stories
contained in
 > the last folder.
This method probably will use a "dtml-in" to iterate over
the folders content.
Then you can use "<dtml-with sequence-item"> to open up
the current folder.



Dieter