From 2af24426fd76aa8beeb43eb39fb3bd5452f8d146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 30 Apr 2009 17:42:17 +0200 Subject: [PATCH] Handle getetag and use lastmodified --- trytond/protocols/webdav.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trytond/protocols/webdav.py b/trytond/protocols/webdav.py index 0dafb1b9b0..7e6ac5668e 100644 --- a/trytond/protocols/webdav.py +++ b/trytond/protocols/webdav.py @@ -329,6 +329,9 @@ class TrytonDAVInterface(iface.dav_interface): cursor.close() return res + def _get_dav_getetag(self, uri): + return '"' + str(self.get_lastmodified(uri)) + '"' + def get_creationdate(self, uri): dbname, dburi = self._get_dburi(uri) if not dbname or not dburi: