use instance for getting vocabulary items: allows the usage of nodeView.context that also works when creating new objects

This commit is contained in:
Helmut Merz 2012-01-14 11:49:19 +01:00
parent 662a9cb8ef
commit 57bcdcfb21

View file

@ -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))