Previously Jonathan Vanasco wrote:
> 
> your approach would make sense for inline code.
> 
> my issue is that any helper def or class method that references g will
> cause an error when included
> 
> i don't think initializing with a setup routine in the controllers
> will address that

You removed all context from your reply so I'm not sure what exactly yo
uare replying to.

I suspect you are replying to my reference to the session thread. That
has example code for a TestCase class you can use for your tests that
sets up everything needed to use 'magic' variables like g. It works
just fine for helper methods or anything else.

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to