WebKit.ImportManager | index /usr/local/share/webware/WebKit/ImportManager.py

`ImportManager
Manages imported modules and protects against concurrent imports.
Keeps lists of all imported Python modules and templates as well as other
config files used by Webware for Python. For modules which are not directly
imported, ImportManager can use ImportSpy to keep track of them. This can
be used to detect changes in source files, templates or config files in order
to reload them automatically by the AutoReloadingAppServer. The use of
ImportSpy can be suppressed with the``UseImportSpy`` setting.`

Modules
`` |  |
imp | os | sys |

Classes
`` |  | __builtin__.object ImportManager
class ImportManager(__builtin__.object)
`` | `The import manager. Keeps track of the Python modules and other system files that have been imported and are used by Webware.`
| Methods defined here: __init__(self) `Create import hook.` activateImportSpy(self) `Activate ImportSpy to keep track of modules loaded elsewhere.` delModules(self, includePythonModules=False, excludePrefixes=None) `Delete imported modules. Deletes all the modules that the ImportSpy has ever imported unless they are part of WebKit. This in support of DebugAppServer's useful (yet imperfect) support for AutoReload.` fileList(self, update=True) `Return the list of tracked files.` fileUpdated(self, filename, update=True, getmtime=<function getmtime>) `Check whether file has been updated.` load_module(self, name, file, filename, info) `Replaces imp.load_module.` notifyOfNewFiles(self, hook) `Register notification hook. Called by someone else to register that they'd like to be know when a new file is imported.` recordFile(self, filename, isfile=<function isfile>) `Record a file.` recordModule(self, mod, isfile=<function isfile>) `Record a module.` recordModules(self, moduleNames=None) `Record a list of modules (or all modules).` updatedFile(self, update=True, getmtime=<function getmtime>) `Check whether one of the files has been updated.` watchFile(self, path, modname=None, getmtime=<function getmtime>) `Add more files to watch without importing them.` Static methods defined here: find_module(name, path=None) `Replaces imp.find_module.` Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`