From f8014f2a3d768a6366b422d7d08ad3ac75dc0b6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Sun, 7 Jul 2013 14:02:30 +0200 Subject: [PATCH 1/1] =?utf8?q?On=20g=C3=A9n=C3=A8re=20=C3=A0=20la=20main?= =?utf8?q?=20le=20uid=20lors=20de=20la=20r=C3=A9-indexation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- manipulation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manipulation.py b/manipulation.py index 44262dc..43bd086 100755 --- a/manipulation.py +++ b/manipulation.py @@ -125,7 +125,11 @@ class ImageQueueProcessorThread(threading.Thread) : pass p.tiles_available = 1 - p.reindexObject(idxs=['tiles_available']) + + portal = app.unrestrictedTraverse(self.portal_path) + ctool = portal.portal_catalog + uid = '/'.join(p.getPhysicalPath()) + ctool.reindexObject(p, idxs=['tiles_available'], uid=uid) transaction.commit() except ConflictError : -- 2.20.1