Trees | Index | Help |
|
---|
Package zope :: Package schema :: Module _field :: Class Choice |
|
object
--+ |Element
--+ |Attribute
--+ |Field
--+ | Choice
StateSelectionField
Choice fields can have a value found in a constant or dynamic set of values given by the field definition.
Method Summary | |
---|---|
Initialize object. | |
_validate(self,
value)
| |
See zope.schema._bootstrapinterfaces.IField. | |
| |
Inherited from Field | |
| |
| |
| |
| |
| |
| |
| |
Inherited from Element | |
Returns the documentation for the object. | |
Returns the name of the object. | |
Returns the value associated with 'tag'. | |
Returns a list of all tags. | |
Returns the value associated with 'tag'. | |
Associates 'value' with 'key'. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
source |
Class Variable Summary | |
---|---|
Implements |
__implemented__ = <implementedBy zope.schema._field.Choi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from Field | |
object |
_Field__missing_value_marker = <object object at 0xb7e6e...
|
NoneType |
_type = None |
NoneType |
context = None |
ValidatedProperty |
default = <zope.schema._bootstrapfields.ValidatedPropert...
|
FieldProperty |
description = <zope.schema.fieldproperty.FieldProperty o...
|
NoneType |
missing_value = None |
int |
order = 285 |
FieldProperty |
readonly = <zope.schema.fieldproperty.FieldProperty obje...
|
FieldProperty |
required = <zope.schema.fieldproperty.FieldProperty obje...
|
FieldProperty |
title = <zope.schema.fieldproperty.FieldProperty object ...
|
Inherited from Attribute | |
NoneType |
interface = None |
Inherited from Element | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
__init__(self,
values=None,
vocabulary=None,
source=None,
**kw)
|
bind(self, object)See zope.schema._bootstrapinterfaces.IField.
|
fromUnicode(self, str)>>> from vocabulary import SimpleVocabulary >>> t = Choice( ... vocabulary=SimpleVocabulary.fromValues([u'foo',u'bar'])) >>> t.fromUnicode(u"baz") Traceback (most recent call last): ... ConstraintNotSatisfied: baz >>> t.fromUnicode(u"foo") u'foo' |
Property Details |
---|
source
|
Class Variable Details |
---|
__implemented__
|
__provides__
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:24 2005 | http://epydoc.sf.net |