On 7/15/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> "Javier Rojas" <[EMAIL PROTECTED]> writes:
>
> > to put things in context, I'll paste the code.
> > First, the controller:
>
> (...)
>
>
> And what is the exception?  What is the database?
err... in the sqlobject definition, the name attribute is defined to
be an alternateID, so the idea is that the database raise an exception
is the name already exists, and if so, pass an error message to the
javascript callback. I'm (almost) sure that the exception is raised
only is such case (I know I have to be more specific about the
exception to be handled, but that can be done later :) ). I've been
reading mochikit's doc and I think the problem might be with the http
code returned. When an exception is raised in a controller, the return
(HTTP) code changes? that might be causing my callbacks to not be
called....

> I don't have problems with failures here, but I'm not doing something as
> dynamic as you are -- yet ;-)
>
> --
> Jorge Godoy      <[EMAIL PROTECTED]>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to