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()