Re: [Zope] How to find unused Images

2008-11-17 Thread Rupesh P Raj
Thanks for the reply :)

-Roopesh
___
Zope maillist  -  Zope@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 )


Re: [Zope] How to find unused Images

2008-11-17 Thread Peter Bengtsson
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 <[EMAIL PROTECTED]>:
> 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@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
___
Zope maillist  -  Zope@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 )


Re: [Zope] How to find unused Images

2008-11-16 Thread Andreas Jung

On 17.11.2008 8:37 Uhr, Rupesh P Raj wrote:

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?


This is completely outside the scope of the Zope functionality. You have 
to parse our content-objects referencing to other resources yourself.




Is there a last accessed time or so


no

-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope maillist  -  Zope@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 )