AW: [Zope3-Users] Ahh, counters... Best practice?
    Roger Ineichen 
    dev at projekt01.ch
       
    Wed Aug 15 02:46:16 EDT 2007
    
    
  
Hi Jeff, Benji
> Betreff: Re: [Zope3-Users] Ahh, counters... Best practice?
> 
> Jeff Shell wrote:
> > We're working on something where we need to allow site visitors to 
> > rate items. It's the basic star-rating thing. We want to 
> keep a count 
> > of the number of votes along with the current value.
> 
> At work we've been contemplating an approach for use in some 
> similar situations we want to address.
> 
> In broad strokes: keep the updated value in memory, write the 
> value to the database "periodically" (for whatever value of 
> "periodically" is appropriate for the data).
> 
> This should work well when the value changes often and 
> loosing the most recent updates to the value isn't catastrophic.
There is a simple rating system from lovely systems in the 
zope repos:
ssh://svnzope/repos/main/lovely.rating/trunk
It's easy to use together with the great JQuery star rating
plugin here:
http://dev.jquery.com/~john/plugins/rating/
Regards
Roger Ineichen
> Benji York
> Senior Software Engineer
> Zope Corporation
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 
    
    
More information about the Zope3-users
mailing list