Package web2py :: Package gluon :: Module custom_import :: Class _DateTrackerImporter

[hide private]
[frames] | no frames]

# Class _DateTrackerImporter

source code

       object --+
                |
    _BaseImporter --+
                    |
                   _DateTrackerImporter

Known Subclasses:
  _Web2pyDateTrackerImporter

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

Instance Methods | [hide private]

__init__(self) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

begin(self) Many imports can be made for a single import statement. | source code

__call__(self, name, globals=global_settings.applications_parent, locals=global_settings.applications_parent, fromlist=global_settings.applications_parent, level=-1) The import method itself. | source code

_update_dates(self, name, fromlist) Update all the dates associated to the statement import. | source code

_reload_check(self, name) Update the date associated to the module and reload the module if the file has changed. | source code

end(self) Needed for clean up. | source code

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Methods | [hide private]

_get_module_file(cls, module) Get the absolute path file associated to the module or None. | source code

Class Variables | [hide private]

| _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 x.__class__.__doc__ for signature

Overrides: object.__init__
  (inherited documentation)

### begin(self)

source code

Many imports can be made for a single import statement. This method help the management of this aspect.

Overrides: _BaseImporter.begin
  (inherited documentation)

### __call__(self, name, globals=global_settings.applications_parent, locals=global_settings.applications_parent, fromlist=global_settings.applications_parent, level=-1)
(Call operator)

source code

The import method itself.

Overrides: _BaseImporter.__call__

### _update_dates(self, name, fromlist)

source code

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

### end(self)

source code

Needed for clean up.

Overrides: _BaseImporter.end
  (inherited documentation)