Einar Næss Jensen wrote at 2003-5-26 13:16 -0700:
I have an index_html (dtmlMethod) which prints the date it was last modified: <dtml-var expr="REQUEST['PUBLISHED'].bobobase_modification_time().strftime('%m/%d/%Y, %H:%M')">
This would work fine if I access the full url of the object:
http://www.bobosite.org/index_html
But: if i just type
It will render the date of the root folders last modification date.
Why don't they show the same date?
I think, it is a bug. File a bug report into <http://collector.zope.org/Zope>.
How can I make them do that?
You can use a DTML Document (you may then get other problems). Probably better: switch to ZPT. It provides much more control over the namespace and allows you to specify unmistakenly whether you want to reference the template or the objects the template is applied to. Dieter