summaryrefslogtreecommitdiff
path: root/addons/document_webdav/document_webdav.py
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
commit12fcd1be2f1a891b7fe099ad0044e68c45280907 (patch)
treef60c92735fb1f9bde88b4affe5fa513b5e460570 /addons/document_webdav/document_webdav.py
parent58e9ba97bbe188438cb67c1f59292f9b4d1de1c5 (diff)
[IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
Diffstat (limited to 'addons/document_webdav/document_webdav.py')
-rw-r--r--addons/document_webdav/document_webdav.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py
index 2e1eb8cabd2..b06032089aa 100644
--- a/addons/document_webdav/document_webdav.py
+++ b/addons/document_webdav/document_webdav.py
@@ -45,7 +45,9 @@ class document_davdir(osv.osv):
else:
raise ValueError("dir node for %s type", dbro.type)
- def _prepare_context(self, cr, uid, nctx, context):
+ def _prepare_context(self, cr, uid, nctx, context=None):
+ if not context:
+ context = {}
nctx.node_file_class = nodes.node_file
# We can fill some more fields, but avoid any expensive function
# that might be not worth preparing.