Compound Fields

class DateYYYYMMDD(value=Unspecified, **kw)
class JoinedString(value=Unspecified, **kw)

A sequence container that acts like a compounded string such as CSV.

Marshals child element values to and from a single string:

>>> from flatland import JoinedString
>>> el = JoinedString(['x', 'y', 'z'])
>>> el.value
'x,y,z'
>>> el2 = JoinedString('foo,bar')
>>> el2[1].value
'bar'
>>> el2.value
'foo,bar'

Only the joined representation is considered when flattening or restoring with set_flat(). JoinedStrings run validation after their children.