[Zope] Zope.org Feature Request - Product Download Counter

Andy McKay andym@ActiveState.com
Tue, 10 Oct 2000 10:05:24 -0700


Of course the only problem with a hit counter is that high traffic requests
mean continually writing the object into the ZODB each time it gets hit /
downloaded, whatever. Thats why I release FSCounter which uses the file
system. I would like to expand this to cover multiple objects...

----- Original Message -----
From: "J. Atwood" <jatwood@bwanazulia.com>
To: <zope@zope.org>
Sent: Tuesday, October 10, 2000 5:17 AM
Subject: [Zope] Zope.org Feature Request - Product Download Counter


> It would be really nice to know how many people are downloading the
> products. This would also be a great feature to add to the actual
> Zope distribution. I know you could get this from the logs (easily)
> but you could also add a small counter to the product 'view' method,
> something along the lines of what is in the Simple Url products (BTW
> one of my favorites) and make it something you can turn on or off for
> your products.
>
> <dtml-call "REQUEST.set('hitcount', hitcount + 1)">
> <dtml-call "propertysheets.public.manage_editProperties(REQUEST)">
> <dtml-call "RESPONSE.redirect(url)">
>
> Thanks,
> J
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>