I was able to track down to what seems like a bug in TG2.  The delete
operation does not seem to work on nested controllers.  With the
following fix, it works.

582c582,583
<         elif remainder_len >=2 and (method == 'post' or method ==
'put') and hasattr(obj, 'get_one'):
---
>         ##### elif remainder_len >=2 and (method == 'post' or method == 
> 'put') and hasattr(obj, 'get_one'):
>         elif remainder_len >=2 and (method == 'post' or method == 'put' or 
> method == 'delete') and hasattr(obj, 'get_one'):
~

Hope this helps!  It would be great if a TG2 developer can confirm
this bug (and fix).

For an old thread discussing nested REST controller, kindly refer to
http://groups.google.com/group/turbogears/browse_thread/thread/47ecba39f1e2f9c4/22014d75378809b0

Thanks!
ozwyzard


-- 
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