provide a display renderer for password fields that does not show the field content
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3531 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d814e68bfb
commit
aaf86d4ec9
2 changed files with 3 additions and 1 deletions
|
@ -39,6 +39,7 @@ class Email(schema.TextLine):
|
||||||
|
|
||||||
# put field type name and other info in standard field classes.
|
# put field type name and other info in standard field classes.
|
||||||
schema.Field.__typeInfo__ = ('textline',)
|
schema.Field.__typeInfo__ = ('textline',)
|
||||||
|
schema.Password.__typeInfo__ = ('password',)
|
||||||
schema.Int.__typeInfo__ = ('number',)
|
schema.Int.__typeInfo__ = ('number',)
|
||||||
schema.Float.__typeInfo__ = ('number',)
|
schema.Float.__typeInfo__ = ('number',)
|
||||||
schema.Choice.__typeInfo__ = ('dropdown',)
|
schema.Choice.__typeInfo__ = ('dropdown',)
|
||||||
|
|
|
@ -85,7 +85,8 @@ class FieldType(SimpleTerm):
|
||||||
# TODO: register this object as a utility providing IFieldTypes
|
# TODO: register this object as a utility providing IFieldTypes
|
||||||
fieldTypes = SimpleVocabulary((
|
fieldTypes = SimpleVocabulary((
|
||||||
FieldType('textline', 'textline', u'Textline'),
|
FieldType('textline', 'textline', u'Textline'),
|
||||||
FieldType('password', 'password', u'Password'),
|
FieldType('password', 'password', u'Password',
|
||||||
|
displayRenderer='display_password'),
|
||||||
FieldType('textarea', 'textarea', u'Textarea'),
|
FieldType('textarea', 'textarea', u'Textarea'),
|
||||||
FieldType('html', 'html', u'HTML Text'),
|
FieldType('html', 'html', u'HTML Text'),
|
||||||
FieldType('number', 'number', u'Number',
|
FieldType('number', 'number', u'Number',
|
||||||
|
|
Loading…
Add table
Reference in a new issue