From 57bcdcfb21e0223ca85ddddcbcfc090a1a136fcd Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sat, 14 Jan 2012 11:49:19 +0100 Subject: [PATCH] use instance for getting vocabulary items: allows the usage of nodeView.context that also works when creating new objects --- table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/table.py b/table.py index 4478d84..ce9fcff 100644 --- a/table.py +++ b/table.py @@ -110,8 +110,9 @@ class DataTableSourceBinder(object): def __init__(self, tableName): self.tableName = tableName - def __call__(self, context): - context = baseObject(context) + def __call__(self, instance): + #context = baseObject(instance.context) + context = instance.view.nodeView.context dt = context.getLoopsRoot().getConceptManager()[self.tableName] return DataTableSourceList(adapted(dt))