Opened 17 years ago
Closed 17 years ago
#5458 closed (wontfix)
Xml serializer - easier manipulation from Adobe Flex
Reported by: | 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)
Change History (4)
by , 17 years ago
Attachment: | 20070914_patchSerializeXml4Flex.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Keywords: | feature added |
---|
comment:3 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
patch described in the ticket