Ticket #1883 (new defect)

Opened 5 months ago

Last modified 5 months ago

extend object dispatch to use HTTP verb info

Reported by: mramm Assigned to: anonymous
Priority: normal Milestone: 2.0
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

I think we should provide a way to specify which method is called based on HTTP verb type.

We could do this with special method names

def POST_employee(self,...) 
    pass

def GET_employee(self,....)
    pass

or we could ask people to define an employee object which subclasses Resource and defines Get, Post, Put, and whatever other http verbs are required.

But either way, we need to make it easy and somewhat obvious call differnt methods on a resource based on the HTTP verb used in the request.

Change History

07/06/08 11:41:03 changed by mramm

  • version changed from 1.0.4.4 to trunk.
  • milestone set to 2.0-preview-2.

07/06/08 20:55:06 changed by mramm

  • milestone changed from 2.0-preview-2 to 2.0.