Abstract loader support for module import
|Reported by:||richard@…||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Instead of using import all over the place where importing of modules is required, abstract the import routines so that it can take advantage of module loading code if already in existance. e.g. apache.import_module()
It means tighter integration with apache's mod_python, and also means that it's a little more intelligent when used in such an environment.
Granted it's a teensy weensy little bit more overhead per request, however that should be negated by mod_pythons own module resolution code.
As I understand mod_python at the moment, 'imports' made outside of the apache.import_module() framework do not get reloaded by mod_python.