Opened 17 years ago

Closed 17 years ago

#5458 closed (wontfix)

Xml serializer - easier manipulation from Adobe Flex

Reported by: trebor74hr@… Owned by: nobody
Component: Core (Serialization) Version: dev
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: no UI/UX: no

Description

Hi,
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 '%field.name%' tag.

Sample usage:

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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

by trebor74hr@…, 17 years ago

patch described in the ticket

comment:1 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Philippe Raoult, 17 years ago

Keywords: feature added

comment:3 by Malcolm Tredinnick, 17 years ago

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