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
This commit is contained in:
P. Christeas
2010-10-27 13:23:24 +03:00
parent 24d70f724b
commit d0b6bf1181
+1 -1
View File
@@ -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):