[Zope] bobobase-modification-time problem
Einar Næss Jensen
einjen at nvg.ntnu.no
Mon Jul 12 07:12:57 EDT 2004
My users wants to edit pages with dreamweaver, so we have to have a
index_html in the root containing:
<dtml-var index.html>
now, this works ok, but:
when i use bobobase-modification-time to present the date when the
document last change, it does not show the time of the correct object
(ie: the object I want it to get the date from)
structure as follow:
root
|----------------Folder1
| |
| |-------index.html
| |-------Folder2
| |
|------index_html |----------index.html
I have tried these two functions:
<dtml-var expr="bobobase_modification_time().strftime('%d/%m/%Y,
%H:%M')"><br>
<dtml-var
expr="REQUEST['PUBLISHED'].bobobase_modification_time().strftime('%d/%m/%Y,
%H:%M')">
When i go to
/root/Folder1/Folder2
I get:
1-----> 12/07/2004, 12:24 (date of Folder2)
2-----> 12/07/2004, 11:45 (date of index_html in root-folder)
line nr two is "wrong"
but when I try to access
/root/Folder1/Folder2/index.html
I get what I want:
1-----> 12/07/2004, 12:24 (date of Folder2)
2-----> 12/07/2004, 12:45 (date of index.html in Folder2)
How to solve this?
all documents are dtml-methods
Best regards
More information about the Zope
mailing list