Bases: flatland.schema.scalars.Scalar
A regular old text string.
If true, strip leading and trailing whitespace during conversion.
Return a Python representation.
Returns: | a text value or None |
---|
If strip is true, leading and trailing whitespace will be removed.
Return a text representation.
Returns: | a Unicode value or u'' if value is None |
---|
If strip is true, leading and trailing whitespace will be removed.
True if the String is missing or has no value.
Bases: flatland.schema.scalars.Number
Element type for Python’s int.
u'%i'
Bases: flatland.schema.scalars.Number
Element type for Python’s long.
u'%i'
Bases: flatland.schema.scalars.Number
Element type for Python’s float.
u'%f'
Bases: flatland.schema.scalars.Number
Element type for Python’s Decimal.
u'%f'
Bases: flatland.schema.scalars.Scalar
Element type for Python’s bool.
The text serialization for True: u'1'.
A sequence of acceptable string equivalents for True.
Defaults to (u'on', u'true', u'True', u'1')
The text serialization for False: u''.
A sequence of acceptable string equivalents for False.
Defaults to (u'off', u'false', u'False', u'0', u'')
Coerce value to bool.
Returns: | a bool or None |
---|
If value is text, returns True if the value is in true_synonyms, False if in false_synonyms and None otherwise.
For non-text values, equivalent to bool(value).
Convert bool(value) to a canonical text representation.
Returns: | either self.true or self.false. |
---|