Jason Chu wrote:
> On Thu, 30 Mar 2006 16:24:45 -0800
> Jason Chu <[EMAIL PROTECTED]> wrote:
>
> > On Thu, 30 Mar 2006 05:15:29 -0800
> > "Michele Cella" <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > The problem is there indeed, if the decorated method usese kw all
> > > works fine but if you are declaring parameters name it will not
> > > work. :-(
> > >
> > > Ciao
> > > Michele
> >
> > It's strange.  I now realize that I'm running into this problem.  The
> > method I'm running into it on has a **kw (**data actually).  The one
> > different thing about this method is it has a Schema validator where
> > I've added a chained validator.  I doesn't seem to be affected by
> > whether the chained validator is Invalid or not.
> >
> > I used to be able to restart my app server and it would go away, but
> > it's sticking around more often now.
> >
> > Jason
>
> Ok, I've done a little bit more looking.  The validator isn't it at all.
>
> I get the error when there's an exception inside the execution of the
> error handler.  This could mean, in Michele's case, that the 'TypeError:
> takes at least 2 non-keyword arguments' type of exception is triggering
> the problem.
>
> I was able to create a quickstarted project that exhibits my symptoms.
>
> One form is marked working, the other is marked broken.  They only
> differ in that one raises an exception and the other doesn't.
>
> The one that returns normally has tg_errors set.
>
> The one that raises an exception has tg_errors set once (for when the
> exception is thrown), but then it seems to call the method again,
> without tg_errors set, but validation_errors is still set (because it's
> still only one request).  Very strange.
>
> I've uploaded by quickstarted project to the trac.  Here's a link again:
> http://trac.turbogears.org/turbogears/ticket/698
>

Thanks a lot Jason, I think that the research you've done and the
example project will be very helpful to resolve this problem. ;-)

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to