Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
RestController nesting bug?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ozwyzard  
View profile  
 More options Aug 23 2010, 11:00 pm
From: ozwyzard <ozwyz...@gmail.com>
Date: Mon, 23 Aug 2010 20:00:18 -0700 (PDT)
Local: Mon, Aug 23 2010 11:00 pm
Subject: RestController nesting bug?
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/47ecba...

Thanks!
ozwyzard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ozwyzard  
View profile  
 More options Aug 23 2010, 11:02 pm
From: ozwyzard <ozwyz...@gmail.com>
Date: Mon, 23 Aug 2010 20:02:20 -0700 (PDT)
Local: Mon, Aug 23 2010 11:02 pm
Subject: Re: RestController nesting bug?
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 <ozwyz...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christoph Zwerschke  
View profile  
 More options Aug 24 2010, 3:19 am
From: Christoph Zwerschke <c...@online.de>
Date: Tue, 24 Aug 2010 09:19:33 +0200
Local: Tues, Aug 24 2010 3:19 am
Subject: Re: [TurboGears] RestController nesting bug?
Am 24.08.2010 05:00, schrieb ozwyzard:

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

Chances are better it you open a ticket for that at
http://trac.turbogears.org
When posting only on the mailing list error reposts tend to be forgotten
if nobody has time at the moment.

- Christoph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ozwyzard  
View profile  
 More options Aug 24 2010, 8:38 pm
From: ozwyzard <ozwyz...@gmail.com>
Date: Tue, 24 Aug 2010 17:38:10 -0700 (PDT)
Local: Tues, Aug 24 2010 8:38 pm
Subject: Re: RestController nesting bug?
Thanks Christoph.  I opened a Trac account and submitted the defect:

http://trac.turbogears.org/ticket/2500

- ozwyzard

On Aug 24, 3:19 am, Christoph Zwerschke <c...@online.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »