Reviewers: ,


Please review this at http://codereview.tryton.org/170003/

Affected files:
  M carddav.py
  M webdav.py


Index: carddav.py
===================================================================
--- a/carddav.py
+++ b/carddav.py
@@ -1,7 +1,11 @@
 #This file is part of Tryton.  The COPYRIGHT file at the top level of
 #this repository contains the full copyright notices and license terms.
-from DAV import propfind
-from DAV.errors import *
+try:
+    from DAV import propfind
+    from DAV.errors import *
+except ImportError:
+    from pywebdav.lib import propfind
+    from pywebdav.lib.errors import *
 from trytond.protocols.webdav import TrytonDAVInterface, CACHE
 from trytond.pool import Pool
 from trytond.transaction import Transaction
Index: webdav.py
===================================================================
--- a/webdav.py
+++ b/webdav.py
@@ -1,7 +1,10 @@
 #This file is part of Tryton.  The COPYRIGHT file at the top level of
 #this repository contains the full copyright notices and license terms.
 import base64
-from DAV.errors import DAV_NotFound, DAV_Forbidden
+try:
+    from DAV.errors import DAV_NotFound, DAV_Forbidden
+except ImportError:
+    from pywebdav.lib.errors import DAV_NotFound, DAV_Forbidden
 from trytond.model import ModelView, ModelSQL
 from trytond.tools import reduce_ids
 from trytond.transaction import Transaction


--
[email protected] mailing list

Reply via email to