Exemple #1
0
 def style(self, ticket, req, **style):
     votesystem = VoteSystem(self.env)
     votes = votesystem.get_vote_counts('ticket/%s' % ticket.id)[1]
     max_votes = votesystem.get_max_votes('ticket')
     size = self.marker_radius(votes, max_votes)
     return { 'pointRadius': str(int(size)) }