Add new methods to webdav CONFIG for upcomming version of pywebdav
This commit is contained in:
1 parent
a93e76a3de
commit
26eca14fc1
1 file changed
+9
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user