Hi Crusty!
> you mean CrudRestController or RestController? I dont see any reason
> why RestController shouldnt work with composite primary keys.
Just a RestController. Well, the problem is "how does one pass a
couple of keys in the URI". The only way I could work it out easy is
lik that:
/path/key1,key2/
and that string ("key1,key2") is then split into two keys.
Just try to change
def get_one(self, id)
to
def get_one(self, id1, id2)
and pass /path/key1/key2
and You'll see it does not work.
It seems that RESTful dispatch works correctly only with 1-param
get_one() method
--
Sergei
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---