From 9365cf026a1358307ff807420841ffcaf22fc0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 24 Nov 2011 15:35:25 +0100 Subject: [PATCH] fix location of id --- tabellio/documents/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabellio/documents/common.py b/tabellio/documents/common.py index 111def3..fd6072c 100644 --- a/tabellio/documents/common.py +++ b/tabellio/documents/common.py @@ -60,5 +60,5 @@ class BasePublication(object): break previous_result = brains del topics[random.randint(0, len(topics)-1)] - doc_ids = [self.context.id] + doc_ids = [self.id] return [x for x in r if ((type(x.getId) is str) and x.getId or x.getId()) not in doc_ids]