Opened 11 years ago

Closed 11 years ago

#5458 closed (wontfix)

Xml serializer - easier manipulation from Adobe Flex

Reported by: trebor74hr@… Owned by: nobody
Component: Core (Serialization) Version: master
Severity: Keywords: xml flex feature
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I'm sending you a patch to version from 2007-09-03 trunk checkout. For django.core.serialize method serialize() in xml mode, can take bool param flexmode which enables easier xml parsing from Adobe Flex (HttpService+Dataprovider) - i.e. no '-' in main tag name, tags 'field' to '' tag.

Sample usage:

data = serializers.serialize("xml", Holiday.objects.all(), flexmode=True)

Attachments (1)

20070914_patchSerializeXml4Flex.diff (2.4 KB) - added by trebor74hr@… 11 years ago.
patch described in the ticket

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by trebor74hr@…

patch described in the ticket

comment:1 Changed 11 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 11 years ago by Philippe Raoult

Keywords: feature added

comment:3 Changed 11 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

This is too specialised for core (particularly the first part of the change -- removing the hyphen: that just says Adobe's thing can't speak XML). Since serializers are designed to be subclassable, this should be easy enough to use as a subclass.

Note: See TracTickets for help on using tickets.
Back to Top