misc: use black circles when displaying a password field value (#29390)
This commit is contained in:
parent
0333c9494e
commit
8fd46311a5
|
@ -108,7 +108,7 @@ def test_items():
|
|||
assert field.get_options() == [('1', 'foo', '1'), ('2', 'bar', '2')] # twice for cached behaviour
|
||||
|
||||
def test_password():
|
||||
assert fields.PasswordField().get_view_value('xxx') == '********'
|
||||
assert fields.PasswordField().get_view_value('xxx') == '●'*8
|
||||
|
||||
def test_file():
|
||||
upload = Upload('/foo/bar', content_type='text/plain')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# w.c.s. - web application for online forms
|
||||
# Copyright (C) 2005-2010 Entr'ouvert
|
||||
#
|
||||
|
@ -2231,7 +2233,7 @@ class PasswordField(WidgetField):
|
|||
value=self.confirmation_title)
|
||||
|
||||
def get_view_value(self, value):
|
||||
return '*'*8
|
||||
return '●'*8
|
||||
|
||||
def get_csv_value(self, value, **kwargs):
|
||||
return [self.get_view_value(value)]
|
||||
|
|
Loading…
Reference in New Issue