Commit 0b832cb9 authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4: bobobase_modification_time has been removed.

Modify DTML templates likewise Zope4 removal commit:
  commit 1df76c1ea8911d7d9249eb6beab1fafd4ed5803c
  Author: Hanno Schlichting <hanno@hannosch.eu>
  Date:   Sun Jul 3 14:19:26 2011 +0000
      Removed `bobobase_modification_time` from `Persistence.Persistent`, you can use `DateTime(object._p_mtime)` instead.

This fixes failure on test_PROPFIND_on_document (testWebDavSupport).
parent 1c36bdfa
......@@ -261,7 +261,7 @@ class TestWebDavSupport(ERP5TypeTestCase):
self.assertEqual(DateTime(xml_metadata.find('{DAV:}response/'\
'{DAV:}propstat/{DAV:}prop/{DAV:}getlastmodified')\
.text).ISO8601(),
document.bobobase_modification_time().toZone('UTC').ISO8601())
DateTime(document._p_mtime).toZone('UTC').ISO8601())
@expectedFailure
def test_PROPFIND_on_document_bis(self):
......
......@@ -35,14 +35,8 @@
</td>
</tr>
<tr>
<td align="left" valign="middle">
<div class="form-label">Last Modified</div>
</td>
<td align="left" valign="middle">
<div class="form-text"
tal:content="python:context.bobobase_modification_time().strftime('%Y-%m-%d %I:%M %p')">1/1/2000
</div>
</td>
<td align="left" valign="middle"></td>
<td align="left" valign="middle"></td>
<td align="left" valign="top" colspan="2">
<a href="source.html" tal:condition="context/html">Browse HTML source</a>
<a href="source.xml" tal:condition="not:context/html">Browse XML source</a>
......
......@@ -91,15 +91,6 @@ function toggleSelect() {
"skey == 'get_size' or rkey == 'get_size'"
><strong>Size</strong><dtml-else>Size</dtml-if></a></div>
</td>
<td width="19%" align="left"><div class="list-item"><a
href="./manage_main?skey=bobobase_modification_time<dtml-if
"skey == 'bobobase_modification_time' and not rkey"
>&amprkey=bobobase_modification_time</dtml-if>"
onMouseOver="window.status='Sort objects by modification time'; return true"
onMouseOut="window.status=''; return true"><dtml-if
"skey == 'bobobase_modification_time' or rkey == 'bobobase_modification_time'"
><strong>Last Modified</strong><dtml-else>Last Modified</dtml-if></a></div>
</td>
<td width="10%" align="left"><div class="list-item"><a
href="./manage_main?skey=position"
onMouseOver="window.status='Sort objects by position'; return true"
......@@ -189,12 +180,6 @@ function toggleSelect() {
</dtml-try>
</div>
</td>
<td>
<div class="list-item">
<dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
</div>
</td>
</dtml-with>
<td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment