[Grok-dev] HTTP PUT and HTTP DELETE security support

Oliver Oli oliver.oli at gmail.com
Tue May 15 15:00:55 EDT 2007


It would be nice to have an elegant and obvious way to develop REST
web services with Grok. With web.py it's straight forward:

class MyClass:
  def GET(self, item):
    print "This is a GET request"

  def POST(self):
    do_something_with ( web.data() )

  def PUT(self, item):
    do_something_with ( web.data() )

  def DELETE(self, item):
    print "Item deleted"


I'm not sure if update() is a good method name in Grok. I thought that
it suggest update like the U in CRUD. raw_update() sounds really
weird...

But maybe I'm just not used to the way Grok works.


More information about the Grok-dev mailing list