[pod,px] Allow to reference an already defined variable instead of defining one in a var statement, via the '@' prefix. For example, in PX: var='@i = i + 1'. [pod] Repaired broken tests [gen] Bugfixes.
This commit is contained in:
parent
bd80d63eda
commit
180b3473e8
11 changed files with 1903 additions and 1887 deletions
|
@ -72,8 +72,9 @@ class Computed(Field):
|
|||
if not self.method: return
|
||||
if isinstance(self.method, Px):
|
||||
obj = obj.appy()
|
||||
ctx = {'obj': obj, 'field': self,
|
||||
'_': obj.translate, 'tool': obj.tool}
|
||||
tool = obj.tool
|
||||
ctx = {'obj': obj, 'field': self, 'req': obj.request, 'tool': tool,
|
||||
'_': tool.translate, 'url': tool.o.getIncludeUrl}
|
||||
if self.context: ctx.update(self.context)
|
||||
return self.method(ctx)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue