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):
|
||||
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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue