Code

Opened 7 years ago

Closed 6 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:

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@… 7 years ago.
patch described in the ticket

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by trebor74hr@…

patch described in the ticket

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 7 years ago by PhiR

  • Keywords feature added

comment:3 Changed 6 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from new to 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.