As a static property
On Feb 2, 2014 3:40 AM, "your-mom-noob" <notifications@github.com> wrote:

> In engine_modules/mdc/models.py:
>
> > +	Order to vote for the party line of the MDC
> > +	"""
> > +
> > +	weight = models.PositiveSmallIntegerField(default=1)
> > +	party_line = models.CharField(max_length=30)
> > +
> > +	def resolve(self, vote_registry):
> > +		if self.party_line not in MDC_Party_Lines.keys():
> > +			raise ValidationError
> > +
> > +		if self.player in vote_registry.values():
> > +			self.weight = Counter(vote_registry.values())[self.player]+1
> > +			self.save()
> > +
> > +	@classmethod
> > +	def build_vote_registry(cls, game):
>
> Buffering it inside a member of the classe won't work, because it won't
> differentiate between different instances. So if one generates the
> registry, the next one will not although it should
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Neamar/corporate/pull/31/files#r9368267>
> .
>