Re: Question about the "new" module

2006-12-29 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Gabriele> I'm using Python 2.5 to develop a simple MVC framework based > Gabriele> on mod_python. To load my controllers, I create new modules > Gabriele> using the "new" module like this: > > Gabriele> # > Gabriele> my_module = new.module("random_na

Re: Question about the "new" module

2006-12-29 Thread skip
Gabriele> I'm using Python 2.5 to develop a simple MVC framework based Gabriele> on mod_python. To load my controllers, I create new modules Gabriele> using the "new" module like this: Gabriele> # Gabriele> my_module = new.module("random_name") Gabriele> my_module.__f

Question about the "new" module

2006-12-29 Thread Gabriele *darkbard* Farina
Hi, I'm using Python 2.5 to develop a simple MVC framework based on mod_python. To load my controllers, I create new modules using the "new" module like this: # my_module = new.module("random_name") my_module.__file__ = module_path exec open(module_path, "r") in my_module.__dict__ then I i