Still trying to grock the TG dispatch code, but I do have a quick
question...

Is there an error in the way 2.1 RestController supports invoking
custom actions?

[ See: http://microformats.org/wiki/rest/urls#Invoke_Custom_Actions ]

Assuming a method "promote(self, id)" defined in People
(RestController):

1) Calling "GET /people/1/promote" yields a 404.
2) Calling "GET /people/promote/1" works fine.

I would have expected #1 to work, and #2 to fail with "too many args"
to get_one().

As a work around, I've defined "get_one(id, action=None)", and routed
from there.



--

You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to