RESTful Python

S

SimonW

I am building a application using XUL, and am looking at using the REST
approach rather than XML-RPC for the back end.

I've setup a mod-python handler which can handle PUT, DELETE, POST and
GET requests, but after that I seem to get lost. I guess this is more a
REST question than a python question, however I ultimately would like to
implement the entire backend in Python.

I want to be able to address sections of an XML document using an URI,
but I am not sure how to implement this. I've seen this done in Python
before, however I cannot find the site again, and cannot recall the
correct google incantations to re-discover it.

Can anyone point me to some REST style implementations in Python?


Regards,

Simon R. Wittber
http://www.metaplay.com.au
Perth, Western Australia.
 
A

A.M. Kuchling

I want to be able to address sections of an XML document using an URI,
but I am not sure how to implement this. I've seen this done in Python
before, however I cannot find the site again, and cannot recall the
correct google incantations to re-discover it.

The usual way would be to use a fragment identifier, so that the client can
find the right element, e.g. http://example.com/foo.xml#id45 means
downloading foo.xml and looking for the element with an id="id45" attribute.
But the fragment identifier isn't sent to the HTTP server, so you couldn't
do a DEL or PUT to replace just that fragment; I don't know if that's what
you want.
Can anyone point me to some REST style implementations in Python?

Someone's already pointed you to Dave Kuhlman's article on REST and Quixote,
which is a good start.

--amk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top