![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | AreModuleFilesModified |
def | UpdateModuleFileModificationTimes |
def | ResetModules |
Static Public Member Functions | |
def | GetModuleFile |
Manages loaded modules in the runtime. Responsible for monitoring and reporting about file modification times. Modules can be loaded from source or precompiled byte-code files. When a file has source code, the ModuleManager monitors the modification time of the source file even if the module itself is loaded from byte-code.
def google.appengine.tools.old_dev_appserver.ModuleManager.__init__ | ( | self, | |
modules | |||
) |
Initializer. Args: modules: Dictionary containing monitored modules.
def google.appengine.tools.old_dev_appserver.ModuleManager.AreModuleFilesModified | ( | self | ) |
Determines if any monitored files have been modified. Returns: True if one or more files have been modified, False otherwise.
|
static |
Helper method to try to determine modules source file. Args: module: Module object to get file for. is_file: Function used to determine if a given path is a file. Returns: Path of the module's corresponding Python source file if it exists, or just the module's compiled Python file. If the module has an invalid __file__ attribute, None will be returned.
def google.appengine.tools.old_dev_appserver.ModuleManager.ResetModules | ( | self | ) |
Clear modules so that when request is run they are reloaded.
def google.appengine.tools.old_dev_appserver.ModuleManager.UpdateModuleFileModificationTimes | ( | self | ) |
Records the current modification times of all monitored modules.