]> CRI, Mines Paris - PSL - Portfolio.git/blobdiff - ImageManipulationTool.py
Début d'implémentation du rafraîchissement des images après modification du tri.
[Portfolio.git] / ImageManipulationTool.py
index 4ec31f731e5f6d5dbb3cb2b580ada80a764b5b7a..77e3a9a827606e3ad2e83e9fba951a0dc7827469 100755 (executable)
@@ -104,7 +104,7 @@ class ImageManipulationTool( UniqueObject, OrderedFolder) :
                        portal = utool.getPortalObject()
                        brains = ctool.unrestrictedSearchResults(portal_type='Photo', tiles_available=0)
                        paths = [b.getPath() for b in brains]
                        portal = utool.getPortalObject()
                        brains = ctool.unrestrictedSearchResults(portal_type='Photo', tiles_available=0)
                        paths = [b.getPath() for b in brains]
-                       if itemPath is not None :
+                       if itemPath is not None and itemPath not in paths :
                                paths.insert(0, itemPath)
                        thread = ImageQueueProcessorThread(portal.getPhysicalPath(), paths)
                        thread.start()
                                paths.insert(0, itemPath)
                        thread = ImageQueueProcessorThread(portal.getPhysicalPath(), paths)
                        thread.start()