class documentation

class Deserializer(base.Deserializer):

View In Hierarchy

Deserialize XML.
Method __init__ Init this serializer given a stream or a string
Method __next__ Iteration interface -- return the next item in the stream
Method ​_get​_model​_from​_node Look up a model from a <object model=...> or a <field rel=... to=...> node.
Method ​_handle​_fk​_field​_node Handle a <field> node for a ForeignKey
Method ​_handle​_m2m​_field​_node Handle a <field> node for a ManyToManyField.
Method ​_handle​_object Convert an <object> node to a DeserializedObject.
Method ​_make​_parser Create a hardened XML parser (no custom/external entities).
Instance Variable db Undocumented
Instance Variable event​_stream Undocumented
Instance Variable handle​_forward​_references Undocumented
Instance Variable ignore Undocumented

Inherited from Deserializer:

Method __iter__ Undocumented
Instance Variable options Undocumented
Instance Variable stream Undocumented
def __init__(self, stream_or_string, *, using=DEFAULT_DB_ALIAS, ignorenonexistent=False, **options):
Init this serializer given a stream or a string
def __next__(self):
Iteration interface -- return the next item in the stream
def _get_model_from_node(self, node, attr):
Look up a model from a <object model=...> or a <field rel=... to=...> node.
def _handle_fk_field_node(self, node, field):
Handle a <field> node for a ForeignKey
def _handle_m2m_field_node(self, node, field):
Handle a <field> node for a ManyToManyField.
def _handle_object(self, node):
Convert an <object> node to a DeserializedObject.
def _make_parser(self):
Create a hardened XML parser (no custom/external entities).
db =

Undocumented

event_stream =

Undocumented

handle_forward_references =

Undocumented

ignore =

Undocumented