;ò ×!÷?c@s6dZdklZdklZd„Zd„ZdS(s¦ Install by adding an external method which calls 'purgePhotoCache' Manually purge the photo cache. Useful if you are playing around with dispaly size settings. (s getToolByName(sStringIOcCsSt|dƒ}|ddƒ}gi}|D]}||iƒƒq,~}|SdS(Nsportal_catalogsTypesPhoto(s getToolByNamesselfscatalogsresultssappends_[1]srs getObject(sselfsresultss_[1]scatalogsr((sP/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/Extensions/purgePhotoCache.pys getAllPhotos s-cCsVtƒ}x2t|ƒD]$}|d|iƒIJ|iƒqW|dIJ|iƒSdS(s# To be called by an External Methodsdeleting %s's photo cachesPhoto Cache PurgedN(sStringIOsouts getAllPhotossselfsphotos title_or_ids clearCachesgetvalue(sselfsphotosout((sP/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/Extensions/purgePhotoCache.pyspurgePhotoCaches   N(s__doc__sProducts.CMFCore.utilss getToolByNames cStringIOsStringIOs getAllPhotosspurgePhotoCache(s getToolByNamespurgePhotoCaches getAllPhotossStringIO((sP/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/Extensions/purgePhotoCache.pys?s