Previously Contact 42 wrote:
what's wrong with a normal python module.
Thread safety.
Wichert.
--
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
Wichert Akkerman wrote:
Previously Contact 42 wrote:
what's wrong with a normal python module.
Thread safety.
Wichert
true, but for config stuff that never changes i.e constants, I don't see
a problem.
Huy
--~--~-~--~~~---~--~~
You received this
because i won't know the name of appconfig.py
i'm creating a subclassable framework for distribution
DerivedApp/
DerivedApp/model
BaseApp/
BaseApp/lib/helpers
I'm trying to get the BaseApp/lib/helpers to access Globals, so that
it can access objects in DerivedApp/model (which might have
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
Jonathan Vanasco wrote:
because i won't know the name of appconfig.py
i'm creating a subclassable framework for distribution
DerivedApp/
DerivedApp/model
BaseApp/
BaseApp/lib/helpers
I'm trying to get the BaseApp/lib/helpers to access Globals, so that
it can access objects in
my DerivedApp/model is a subclass of BaseApp/model , etc etc
i've got helpers working as you suggested too
the issue i was hitting, is that in the BaseApp/helpers i'm trying to
create a function that interacts with DerivedApp/Model
i got around it by just passing in model, this will work for