App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Member Functions | List of all members
google.appengine.tools.old_dev_appserver.ModuleManager Class Reference
Inheritance diagram for google.appengine.tools.old_dev_appserver.ModuleManager:

Public Member Functions

def __init__
 
def AreModuleFilesModified
 
def UpdateModuleFileModificationTimes
 
def ResetModules
 

Static Public Member Functions

def GetModuleFile
 

Detailed Description

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.

Constructor & Destructor Documentation

def google.appengine.tools.old_dev_appserver.ModuleManager.__init__ (   self,
  modules 
)
Initializer.

Args:
  modules: Dictionary containing monitored modules.

Member Function Documentation

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.
def google.appengine.tools.old_dev_appserver.ModuleManager.GetModuleFile (   module,
  is_file = os.path.isfile 
)
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.

The documentation for this class was generated from the following file: