consider the settings when evaluating anonymity settings, not the value (which

is broken btw)
This commit is contained in:
Frédéric Péters 2009-01-21 11:41:18 +00:00
parent 7643e166ba
commit d9d2a9f8fd
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ class VoteAnonymityField(WidgetField):
kwargs['vote_anonymity'] = self.vote_anonymity
def get_view_value(self, value):
if value[0] == 'anonymous':
if self.vote_anonymity == 'anonymous':
return _('Anonymous') # XXX: include token?
elif value[0] == 'public':
elif self.vote_anonymity == 'public':
return get_publisher().user_class.get(value[1]).get_display_name()
else:
raise