From c27eb6deeebdd96cacca2851a4511f9f7e75a3a2 Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 10 Mar 2010 09:10:02 +0000 Subject: [PATCH] don't raise an error if predicate is not found; this avoids errors when importing concepts with relation or relation set attributes git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3765 fd906abe-77d9-0310-91a1-e0d9ade77398 --- common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.py b/common.py index 1b255cd..954e0cc 100644 --- a/common.py +++ b/common.py @@ -343,7 +343,8 @@ class RelationSet(object): @Lazy def predicate(self): - return self.conceptManager[self.predicateName] + #return self.conceptManager[self.predicateName] + return self.conceptManager.get(self.predicateName) class ParentRelationSet(RelationSet):