Add new methods to webdav CONFIG for upcomming version of pywebdav

This commit is contained in:
Cédric Krier committed 2009-11-13 12:31:48 +01:00
1 parent a93e76a3de
commit 26eca14fc1
1 file changed
+9
+9
View File
@@ -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()