Forgot to mention the file with the purported bug/fix: .../virtual_environs/tg2env/lib/python2.5/site-packages/ TurboGears2-2.0.3-py2.5.egg/tg/controllers.py
Thanks! ozwyzard On Aug 23, 11:00 pm, ozwyzard <[email protected]> wrote: > 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 > tohttp://groups.google.com/group/turbogears/browse_thread/thread/47ecba... > > 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.

