netcharm / pywebdav

Automatically exported from code.google.com/p/pywebdav
0 stars 0 forks source link

DummyConfigDAV getboolean doesn't parse True #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
... therefore handler._config.DAV.getboolean('lockemulation') is always
False while the handler._config.DAV.lockemulation is True.

A possible fix:

{{{
--- DAVServer/server.py (revision 43)
+++ DAVServer/server.py (working copy)
@@ -166,7 +166,7 @@
             self.__dict__.update(**kw)

         def getboolean(self, name):
-            return (str(getattr(self, name, 0)) in ('1', "yes", "true", "on"))
+            return (str(getattr(self, name, 0)).lower() in ('1', "yes",
"true", "on"))

     class DummyConfig:
         DAV = DummyConfigDAV(**kw)
}}}

Original issue reported on code.google.com by wal...@wjd.nu on 24 Sep 2009 at 12:23

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by spamsch@gmail.com on 15 Apr 2010 at 9:49