RESTful applications

2006-12-31 Thread Sean Davis
REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). That means changing the way that at least I think about web applications. No longer is it a matte

Re: RESTful applications

2006-12-31 Thread Bob Ippolito
On 12/31/06, Sean Davis <[EMAIL PROTECTED]> wrote: REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). That means changing the way that at least I t

Re: RESTful applications

2007-01-01 Thread Robert Ian Smit
REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). Pylons and some other frameworks can work with browser-unsupported HTTP verbs by using a hidden

Re: RESTful applications

2007-01-01 Thread Sean Davis
On 1/1/07, Robert Ian Smit <[EMAIL PROTECTED]> wrote: > REST gets a lot of press these days, it seems. However, I haven't found > many examples of how it works in practice. It seems that put and delete > methods need to be called via XMLHttpRequest (AJAX). Pylons and some other frameworks ca

Re: RESTful applications

2007-01-01 Thread Ian Bicking
Sean Davis wrote: On 1/1/07, *Robert Ian Smit* <[EMAIL PROTECTED] > wrote: > REST gets a lot of press these days, it seems. However, I haven't found > many examples of how it works in practice. It seems that put and delete > methods need to

Re: RESTful applications

2007-01-01 Thread Ben Bangert
ller and a delete(self,id) method, I get an error and the method on the debug page says "POST". Any thoughts? I'm guessing this is because a POST to a individual resource is meaningless in RESTful applications. You can PUT to a specific resource to update it, DELETE the resour

Re: RESTful applications

2007-01-01 Thread Ian Bicking
Ben Bangert wrote: And a map.resource('talk','talks') with a talks.py controller and a delete(self,id) method, I get an error and the method on the debug page says "POST". Any thoughts? I'm guessing this is because a POST to a individual resource is

Re: RESTful applications

2007-01-01 Thread Ben Bangert
On Jan 1, 2007, at 11:05 AM, Ian Bicking wrote: I'm guessing this is because a POST to a individual resource is meaningless in RESTful applications. You can PUT to a specific resource to update it, DELETE the resource, or GET the resource. Under a typical RESTful setup, you POST t

Re: RESTful applications

2007-01-01 Thread Sean Davis
lds, ie: h.form(h.url_for('talk', id=1), method='delete') > And a map.resource('talk','talks') with a talks.py controller and a > delete(self,id) method, I get an error and the method on the debug > page says "POST". Any thoughts? I'm gue

Re: RESTful applications

2007-01-01 Thread Ian Bicking
Ben Bangert wrote: POST might be used for simple kinds of updates -- e.g., increment a counter -- or other kinds of control situations. It's not particularly unRESTful IMHO. I was referring to using a POST against a member resource. Not POST in general. Of course, who knows if the Restaf