diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-10-27 13:23:24 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-10-27 13:23:24 +0300 |
| commit | d0b6bf11812fd80812aef2ad79e297a7dc8d537a (patch) | |
| tree | b6440dcb8858aa487e721c819edec46525ba2cbe /addons/document/nodes.py | |
| parent | 24d70f724b5f2cb01e03661957dfbd5d9cbced3a (diff) | |
document: richer eval() context for res_dirs.
We need to provide 'ctx' to the eval(), so that "uid" is defined in the
expression. Covers the case of user directories.
bzr revid: p_christ@hol.gr-20101027102324-ujy2293kpdzouna2
Diffstat (limited to 'addons/document/nodes.py')
| -rw-r--r-- | addons/document/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/nodes.py b/addons/document/nodes.py index 3a3e6fab54b..eed424ccb6a 100644 --- a/addons/document/nodes.py +++ b/addons/document/nodes.py @@ -791,7 +791,7 @@ class node_res_dir(node_class): ctx.update(self.dctx) where = [] if self.domain: - app = safe_eval(self.domain, self.dctx) + app = safe_eval(self.domain, ctx) if not app: pass elif isinstance(app, list): |
