summaryrefslogtreecommitdiff
path: root/addons/document
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-06-29 17:05:19 +0300
committerP. Christeas <p_christ@hol.gr>2010-06-29 17:05:19 +0300
commit74d60c861f8a8ea7bc04a1dd135db699a94bdbc3 (patch)
tree711a3a6e83dcaa74d86d28beaf280fb856ea89d2 /addons/document
parentd130db349e6caedc789f71064b2dde3888ece7f9 (diff)
Document: the node context shouldn't contain 'lang'
Node context should be as neutral as possible, in order to help caching. bzr revid: p_christ@hol.gr-20100629140519-fgxcr2wm5ctg8ywl
Diffstat (limited to 'addons/document')
-rw-r--r--addons/document/document_directory.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py
index a464ca61247..1b62418106c 100644
--- a/addons/document/document_directory.py
+++ b/addons/document/document_directory.py
@@ -195,17 +195,8 @@ class document_directory(osv.osv):
"""
if not context:
context = {}
- lang = context.get('lang',False)
- if not lang:
- user = self.pool.get('res.users').browse(cr, uid, uid)
- lang = user.context_lang
- context['lang'] = lang
- try: #just instrumentation
- return nodes.get_node_context(cr, uid, context).get_uri(cr, uri)
- except Exception,e:
- print "exception: ",e
- raise
+ return nodes.get_node_context(cr, uid, context).get_uri(cr, uri)
def _locate_child(self, cr, uid, root_id, uri,nparent, ncontext):