From 608b75f1c8aeacb842e4d55b3f119924eb96eff1 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 29 Mar 2016 18:09:06 +0200 Subject: [PATCH] table-based vocabularies: avoid error when used directly with a Concept as instance --- table.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/table.py b/table.py index 8a3f77a..9880f04 100644 --- a/table.py +++ b/table.py @@ -178,6 +178,8 @@ class DataTableSourceBinder(object): def __call__(self, instance): if IInstance.providedBy(instance): context = instance.view.nodeView.context + elif IConcept.providedBy(instance): + context = baseObject(instance) else: context = baseObject(instance.context) dt = context.getLoopsRoot().getConceptManager()[self.tableName]