2 - allow xml retrieval
Reported by Guilherme Silveira | May 31st, 2010 @ 07:31 PM | in upcoming release
By doing
resource = Restfulie.at('entryuri').get
Where the resource is an application/xml, text/xml as, i.e:
<item>
<name>product</name>
<price>2</price>
</items>
resource.item.name # product
resource.item.price # 2
Try using the most important xml unmarshaller in python, in a way it can be changed later:
The get method will retrieve the result, check that "raw" was not invoked, look the Content-type header, and according to its result, using a registering hash, map to a XmlUnmarshaller
Comments and changes to this ticket
-
Rodrigo Manhães June 18th, 2010 @ 06:13 PM
- State changed from new to open
- Assigned user set to Rodrigo Manhães
-
Rodrigo Manhães August 30th, 2010 @ 02:19 AM
- State changed from open to resolved
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
A python port of restfulie