On Jun 14, 2006, at 11:38 AM, Javier Rojas wrote:

>
> there is another problem...
>
> Lets take the formsTutorial, the method that handles the validation is
> add(), and in the save() method, add() is used as the function for
> @error_handler().  Just unzipped, I can start the app and it works OK
>
> When I move the save() method and put it BEFORE the add() method in
> the controllers.py file, python complains about being unable to find
> the add() method, when I try to start the server. If it was running,
> the server crashes. The message is:
>
> NameError: name 'add' is not defined
>
> is this thing a bug?
> am I misreading something?

This is what I'd expect. In the second case, you're referring to the  
name "add" before it has been created.

Kevin

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

Reply via email to