From c7599d6b4346a2f288412186a878562daf9e672b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Sun, 7 Jul 2013 16:38:24 +0200 Subject: [PATCH] =?utf8?q?On=20stagne=20pour=20l'instant=C2=A0:=20l'indexa?= =?utf8?q?tion=20par=20l'automate=20de=20tuilage=20des=20images=20est=20to?= =?utf8?q?ujours=20foireuse=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- manipulation.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/manipulation.py b/manipulation.py index 43bd086..ce74a7d 100755 --- a/manipulation.py +++ b/manipulation.py @@ -125,11 +125,8 @@ class ImageQueueProcessorThread(threading.Thread) : pass p.tiles_available = 1 - - portal = app.unrestrictedTraverse(self.portal_path) - ctool = portal.portal_catalog - uid = '/'.join(p.getPhysicalPath()) - ctool.reindexObject(p, idxs=['tiles_available'], uid=uid) + assert p._getCatalogTool() + p.reindexObject(idxs=['tiles_available']) transaction.commit() except ConflictError : -- 2.20.1