child_attributes = (getattr(cls, name) for name in dir(cls) if type(getattr(cls, name)) is XMLElementChild)
cls._privacy_attributes = tuple(attr.name for attr in child_attributes if attr.name in ('audio', 'text', 'video') or issubclass(attr.type, PrivacyElement))
class Privacy(XMLElement, PersonExtension):
__metaclass__ = PrivacyType
_xml_tag = 'privacy'
_xml_namespace = namespace
_xml_document = PIDFDocument
_xml_children_order = {RPIDNote.qname: 0,
AudioPrivacy.qname: 1,
TextPrivacy.qname: 2,
VideoPrivacy.qname: 3}
id = XMLAttribute('id', type=str, required=False, test_equal=True)
since = XMLAttribute('since', xmlname='from', type=DateTime, required=False, test_equal=True)
until = XMLAttribute('until', type=DateTime, required=False, test_equal=True)