class documentation

class Serializer(base.Serializer):

View In Hierarchy

Serialize a QuerySet to XML.
Method ​_start​_relational​_field Output the <field> element for relational fields.
Method end​_object Called after handling all fields for an object.
Method end​_serialization End serialization -- end the document.
Method handle​_field Handle each field on an object (except for ForeignKeys and ManyToManyFields).
Method handle​_fk​_field Handle a ForeignKey (they need to be treated slightly differently from regular fields).
Method handle​_m2m​_field Handle a ManyToManyField. Related objects are only serialized as references to the object's PK (i.e. the related data is not dumped, just the relation).
Method indent Undocumented
Method start​_object Called as each object is handled.
Method start​_serialization Start serialization -- open the XML document and the root element.
Instance Variable xml Undocumented

Inherited from Serializer:

Method getvalue Return the fully serialized queryset (or None if the output stream is not seekable).
Method serialize Serialize a queryset.
Class Variable internal​_use​_only Undocumented
Instance Variable first Undocumented
Instance Variable options Undocumented
Instance Variable selected​_fields Undocumented
Instance Variable stream Undocumented
Instance Variable use​_natural​_foreign​_keys Undocumented
Instance Variable use​_natural​_primary​_keys Undocumented
def _start_relational_field(self, field):
Output the <field> element for relational fields.
def end_object(self, obj):
Called after handling all fields for an object.
def end_serialization(self):
End serialization -- end the document.
def handle_field(self, obj, field):
Handle each field on an object (except for ForeignKeys and ManyToManyFields).
def handle_fk_field(self, obj, field):
Handle a ForeignKey (they need to be treated slightly differently from regular fields).
def handle_m2m_field(self, obj, field):
Handle a ManyToManyField. Related objects are only serialized as references to the object's PK (i.e. the related data is not dumped, just the relation).
def indent(self, level):

Undocumented

def start_object(self, obj):
Called as each object is handled.
def start_serialization(self):
Start serialization -- open the XML document and the root element.
xml =

Undocumented