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 http://www.bobosite.org/ It will render the date of the root folders last modification date. Why don't they show the same date? How can I make them do that? (I understand that / and /index_html are not the same object and should therefor not show the same date, but it still puzzels me because I thought maybe the index_html would automatically be loaded) Best regards Einar Næss Jensen Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750
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
participants (2)
-
Dieter Maurer -
Einar Næss Jensen