Replace sha widget by password
issue3713 review3821002
This commit is contained in:
1 parent
32ff052cf6
commit
fca8f6a6cf
5 files changed
+6
-6
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Replace sha widget by password
|
||||
* Add Len to PYSON
|
||||
* Use a pool of connection
|
||||
* Manage client actions from button and wizard
|
||||
|
||||
@@ -862,7 +862,7 @@ class DomainParser(object):
|
||||
operator = ''
|
||||
formatted_value = format_value(field, value, target)
|
||||
if (operator in OPERATORS and
|
||||
field['type'] in ('char', 'text', 'sha', 'selection')
|
||||
field['type'] in ('char', 'text', 'selection')
|
||||
and value == ''):
|
||||
formatted_value = '""'
|
||||
return '%s: %s%s' % (quote(field['string']), operator,
|
||||
|
||||
@@ -898,7 +898,6 @@ class DictField(CharField):
|
||||
|
||||
TYPES = {
|
||||
'char': CharField,
|
||||
'sha': CharField,
|
||||
'float_time': FloatField,
|
||||
'integer': IntegerField,
|
||||
'biginteger': IntegerField,
|
||||
|
||||
@@ -150,10 +150,10 @@ class Char(WidgetInterface, TranslateMixin):
|
||||
self.widget.set_focus_chain([self.entry])
|
||||
|
||||
|
||||
class Sha(Char):
|
||||
class Password(Char):
|
||||
|
||||
def __init__(self, field_name, model_name, attrs=None):
|
||||
super(Sha, self).__init__(field_name, model_name, attrs=attrs)
|
||||
super(Password, self).__init__(field_name, model_name, attrs=attrs)
|
||||
self.entry.props.visibility = False
|
||||
|
||||
self.visibility_checkbox = gtk.CheckButton()
|
||||
|
||||
@@ -522,7 +522,7 @@ from calendar import Calendar, DateTime, Time
|
||||
from float import Float
|
||||
from integer import Integer
|
||||
from selection import Selection
|
||||
from char import Char, Sha
|
||||
from char import Char, Password
|
||||
from float_time import FloatTime
|
||||
from checkbox import CheckBox
|
||||
from reference import Reference
|
||||
@@ -549,7 +549,7 @@ WIDGETS_TYPE = {
|
||||
'biginteger': (Integer, 1, False, False),
|
||||
'selection': (Selection, 1, False, False),
|
||||
'char': (Char, 1, False, False),
|
||||
'sha': (Sha, 1, False, False),
|
||||
'password': (Password, 1, False, False),
|
||||
'float_time': (FloatTime, 1, False, False),
|
||||
'boolean': (CheckBox, 1, False, False),
|
||||
'reference': (Reference, 1, False, False),
|
||||
|
||||
Reference in new issue
Block a user