OK, it looks like I was under the mistaken impression that a decorator, since it was being applied to a class method (specifically, a class method in the RootController class), would only be executed when the class method is executed (and therefore after any global variables in the file had already been processed by the interpreter). However, this is very clearly not the case, as described at http://www.python.org/dev/peps/pep-0318/ and as I discovered by stepping through the file when it is initially imported with pdb (and as you also pointed out). I should have done a little investigation into Python decorators before posting my query.
Thanks, Aaron --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
