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

Module custom_import

source code

Classes [hide private]
  CustomImportException
  TrackImporter
An importer tracking the date of the module files and reloading them when they have changed.
Functions [hide private]
 
custom_import_install() source code
 
track_changes(track=True) source code
 
is_tracking_changes() source code
 
custom_importer(name, globals=None, locals=None, fromlist=None, level=-1)
The web2py custom importer.
source code
Variables [hide private]
  INVALID_MODULES = set(['', 'applications', 'custom_import', 'g...
  TRACK_IMPORTER = TrackImporter()
  __package__ = 'gluon'
Function Details [hide private]

custom_importer(name, globals=None, locals=None, fromlist=None, level=-1)

source code 

The web2py custom importer. Like the standard Python importer but it tries to transform import statements as something like "import applications.app_name.modules.x". If the import failed, fall back on naive_importer


Variables Details [hide private]

INVALID_MODULES

Value:
set(['', 'applications', 'custom_import', 'gluon'])