table-based vocabularies: avoid error when used directly with a Concept as instance
This commit is contained in:
parent
689bd983bc
commit
608b75f1c8
1 changed files with 2 additions and 0 deletions
2
table.py
2
table.py
|
@ -178,6 +178,8 @@ class DataTableSourceBinder(object):
|
||||||
def __call__(self, instance):
|
def __call__(self, instance):
|
||||||
if IInstance.providedBy(instance):
|
if IInstance.providedBy(instance):
|
||||||
context = instance.view.nodeView.context
|
context = instance.view.nodeView.context
|
||||||
|
elif IConcept.providedBy(instance):
|
||||||
|
context = baseObject(instance)
|
||||||
else:
|
else:
|
||||||
context = baseObject(instance.context)
|
context = baseObject(instance.context)
|
||||||
dt = context.getLoopsRoot().getConceptManager()[self.tableName]
|
dt = context.getLoopsRoot().getConceptManager()[self.tableName]
|
||||||
|
|
Loading…
Add table
Reference in a new issue