summaryrefslogtreecommitdiff
path: root/addons/document_webdav/dav_fs.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2011-09-08 14:31:15 +0200
committerVo Minh Thu <vmt@openerp.com>2011-09-08 14:31:15 +0200
commit1a40e512944c8562bc3e2ecb4d742e990b6e8720 (patch)
treeb5d5428f100d522224fffb91660df9c2db90a0bd /addons/document_webdav/dav_fs.py
parentbe827a813a53d0be5d521975ebcb06513b04e6a1 (diff)
[REF] document_webdav: reg_http_service accepts the HTTPDir arguments,
renamed auth_proxy to auth_provider. bzr revid: vmt@openerp.com-20110908123115-meorb9rnc2j0rb40
Diffstat (limited to 'addons/document_webdav/dav_fs.py')
-rw-r--r--addons/document_webdav/dav_fs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/document_webdav/dav_fs.py b/addons/document_webdav/dav_fs.py
index 5e01bf6a66c..3447da9befd 100644
--- a/addons/document_webdav/dav_fs.py
+++ b/addons/document_webdav/dav_fs.py
@@ -454,7 +454,7 @@ class openerp_dav_handler(dav_interface):
def get_cr(self, uri, allow_last=False):
""" Split the uri, grab a cursor for that db
"""
- pdb = self.parent.auth_proxy.last_auth
+ pdb = self.parent.auth_provider.last_auth
dbname, uri2 = self.get_db(uri, rest_ret=True, allow_last=allow_last)
uri2 = (uri2 and uri2.split('/')) or []
if not dbname:
@@ -462,10 +462,10 @@ class openerp_dav_handler(dav_interface):
# if dbname was in our uri, we should have authenticated
# against that.
assert pdb == dbname, " %s != %s" %(pdb, dbname)
- res = self.parent.auth_proxy.auth_creds.get(dbname, False)
+ res = self.parent.auth_provider.auth_creds.get(dbname, False)
if not res:
- self.parent.auth_proxy.checkRequest(self.parent, uri, dbname)
- res = self.parent.auth_proxy.auth_creds[dbname]
+ self.parent.auth_provider.checkRequest(self.parent, uri, dbname)
+ res = self.parent.auth_provider.auth_creds[dbname]
user, passwd, dbn2, uid = res
db,pool = pooler.get_db_and_pool(dbname)
cr = db.cursor()