A text field containing a text used as a password.
UNCHANGED_PASSWORD
(type:
object
)
<object object at 0x403d94c8>
context
(type: NoneType
)
None
default
(type:
ValidatedProperty
)
<zope.schema._bootstrapfields.ValidatedProperty object at 0x40b28f2c>
description
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b223ec>
interface
(type: NoneType
)
None
max_length
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b22ecc>
min_length
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b22e8c>
missing_value
(type: NoneType
)
None
order
(type:
int
)
734
readonly
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b2280c>
required
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b22d0c>
title
(type:
FieldProperty
)
<zope.schema.fieldproperty.FieldProperty object at 0x40b0208c>
bind(object)
constraint(value)
fromUnicode(str)
>>> t = Text(constraint=lambda v: 'x' in v) >>> t.fromUnicode("foo x spam") Traceback (most recent call last): ... WrongType: ('foo x spam', <type 'unicode'>) >>> t.fromUnicode(u"foo x spam") u'foo x spam' >>> t.fromUnicode(u"foo spam") Traceback (most recent call last): ... ConstraintNotSatisfied: foo spam
get(object)
getDoc()
Returns the documentation for the object.
getName()
Returns the name of the object.
getTaggedValue(tag)
Returns the value associated with tag
.
getTaggedValueTags()
Returns a list of all tags.
query(object, default=None)
queryTaggedValue(tag, default=None)
Returns the value associated with tag
.
set(context, value)
Update the password.
We use a special marker value that a widget can use to tell us that the password didn't change. This is needed to support edit forms that don't display the existing password and want to work together with encryption.
setTaggedValue(tag, value)
Associates value
with key
.
validate(value)
There are no known subclasses.