~dobey/tarmac/plugins-tests

« back to all changes in this revision

Viewing changes to tarmac/plugins/votes.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2010-09-09 14:42:51 UTC
  • mfrom: (349.1.1 global-votes)
  • Revision ID: paul@eventuallyanyway.com-20100909144251-qj4inzw8ixgq1r38
Allow using a global voting_criteria option for the Votes plug-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        try:
67
67
            criteria = target.config.voting_criteria
68
68
        except AttributeError:
69
 
            return
 
69
            try:
 
70
                criteria = command.config.voting_criteria
 
71
            except AttributeError:
 
72
                return
70
73
 
71
74
        votes = self.count_votes(proposal.votes)
72
75
        criteria = self.parse_criteria(criteria)