[Zope] How to find unused Images

Peter Bengtsson peter at fry-it.com
Mon Nov 17 05:16:24 EST 2008


Write a script in Zope that makes a list of all the Image's paths,
then write another script that parses the Z2.log and cross reference
these lists and remove the Image paths that appear in the access log.
Do it long enough and you'll find which ones aren't being used.


2008/11/17 Rupesh P Raj <roopesh.praj at gmail.com>:
> Hi All,
>
> I am working on an application built on top of Zope. Being a heavily used
> system, there are quite a lot of old 'Images' in the ZODB which are not
> referenced anymore. Can I find the images which are not accessed for a long
> time programatically? Is there a last accessed time or so associated with
> every object?
>
> Regards
> Roopesh
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>



-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list