on 3/8/00 10:14 am, Chris Withers at chrisw@nipltd.com wrote:
"R. David Murray" wrote:
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows | python syntax rules <grin>.
kind of... :-)
In what way does it *not* follow Python (expression) syntax rules?
_['something'] doesn't just return the value from the dictionary which has the 'something' key, if it's callable, it'll try to call it and then return that... not nice :(
If you want to be safe, use _.getitem('something',0)...
I'm still getting allsorts of errors. My code is like this... <dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()"> <dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr"> <dtml-in expr="get_days_events(startDateString)"> <dtml-var EventName> </dtml-in> </dtml-let> </dtml-let> I'm having trouble passing StartDateString to get_days_events. If I look at StartDateString using <dtml-var startDateString> it looks OK. one last attempt anyone? cheers tom