use instance for getting vocabulary items: allows the usage of nodeView.context that also works when creating new objects
This commit is contained in:
parent
662a9cb8ef
commit
57bcdcfb21
1 changed files with 3 additions and 2 deletions
5
table.py
5
table.py
|
@ -110,8 +110,9 @@ class DataTableSourceBinder(object):
|
||||||
def __init__(self, tableName):
|
def __init__(self, tableName):
|
||||||
self.tableName = tableName
|
self.tableName = tableName
|
||||||
|
|
||||||
def __call__(self, context):
|
def __call__(self, instance):
|
||||||
context = baseObject(context)
|
#context = baseObject(instance.context)
|
||||||
|
context = instance.view.nodeView.context
|
||||||
dt = context.getLoopsRoot().getConceptManager()[self.tableName]
|
dt = context.getLoopsRoot().getConceptManager()[self.tableName]
|
||||||
return DataTableSourceList(adapted(dt))
|
return DataTableSourceList(adapted(dt))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue