Jonathan Vanasco wrote:
> I need to run an import like such:
>
> model = getattr(__import__(g.APPNAME, {}, {}, ['']), 'model')
>
> the problem is that I get a bunch of errors like this:
>     TypeError: No object (name: G) has been registered for this thread
>
> because of the import order
>
> can anyone suggest a good way to handle stashing the APPNAME for an
> import of this type?
>   

Use g but make sure it is accessed in this way after load_environment is
called.

Alberto

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