Package gluon :: Module custom_import :: Class TrackImporter
[hide private]
[frames] | no frames]

Class TrackImporter

source code

object --+
         |
        TrackImporter

An importer tracking the date of the module files and reloading them when they are changed.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self, name, globals=None, locals=None, fromlist=None, level=-1)
The import method itself.
source code
 
_update_dates(self, name, globals, locals, fromlist, level)
Update all the dates associated to the statement import.
source code
 
_reload_check(self, name, globals, locals, level)
Update the date associated to the module and reload the module if the file changed.
source code
 
_get_module_file(self, module)
Get the absolute path file associated to the module or None.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  THREAD_LOCAL = threading.local()
  PACKAGE_PATH_SUFFIX = '/__init__.py'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_update_dates(self, name, globals, locals, fromlist, level)

source code 

Update all the dates associated to the statement import. A single import statement may import many modules.