From 23dd94d600e40a07435a688da6ce16fd456d474b Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Thu, 17 Dec 2009 14:34:37 +0530 Subject: [PATCH] [IMP] document_webdav : Replace with four bzr revid: hmo@tinyerp.com-20091217090437-56n5zq91e1fzy8rf --- addons/document_webdav/DAV/iface.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/document_webdav/DAV/iface.py b/addons/document_webdav/DAV/iface.py index 8f6daa5eaa8..c8f5fe2594d 100644 --- a/addons/document_webdav/DAV/iface.py +++ b/addons/document_webdav/DAV/iface.py @@ -67,19 +67,19 @@ class dav_interface: if self.M_NS.has_key(ns): prefix=self.M_NS[ns] else: - print "No namespace:",ns + print "No namespace:",ns, "( for prop:", propname,")" raise DAV_NotFound mname=prefix+"_"+propname - if not hasattr(self,mname): - raise DAV_NotFound + if not hasattr(self,mname): + raise DAV_NotFound try: m=getattr(self,mname) r=m(uri) return r except AttributeError, e: - print 'Property %s not supported' % propname - print "Exception:", e + print 'Property %s not supported' % propname + print "Exception:", e raise DAV_NotFound ### @@ -110,15 +110,15 @@ class dav_interface: """ return the creationdate of a resource """ d=self.get_creationdate(uri) # format it - if isinstance(d, int) or isinstance(d, float): - d = time.localtimetime(d) + if isinstance(d, int) or isinstance(d, float): + d = time.localtimetime(d) return time.strftime("%Y-%m-%dT%H:%M:%S%Z",d) def _get_dav_getlastmodified(self,uri): """ return the last modified date of a resource """ d=self.get_lastmodified(uri) - if isinstance(d, int) or isinstance(d, float): - d = time.localtime(d) + if isinstance(d, int) or isinstance(d, float): + d = time.localtime(d) # format it return time.asctime(d)