From 26eca14fc198cdc89cd0b6f3ac23c696e22bc976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Nov 2009 12:31:48 +0100 Subject: [PATCH] Add new methods to webdav CONFIG for upcomming version of pywebdav --- trytond/protocols/webdav.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/trytond/protocols/webdav.py b/trytond/protocols/webdav.py index ce6cd25483..9930f54697 100644 --- a/trytond/protocols/webdav.py +++ b/trytond/protocols/webdav.py @@ -59,6 +59,15 @@ if not hasattr(WebDAVServer.DAVRequestHandler, '_config'): lockemulation = False verbose = False + def getboolean(self, name): + return bool(self.get(name)) + + def get(self, name, default=None): + try: + return self[name] + except: + return default + class _Config: DAV = DAV()