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

Module custom_import

source code

| This file is part of the web2py Web Framework
| Copyrighted by Massimo Di Pierro <>
| License: LGPLv3 (

Support for smart import syntax for web2py applications

Classes [hide private]
An importer tracking the date of the module files and reloading them when they are 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)
web2py's 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 

web2py's custom importer. It behaves like the standard Python importer but it tries to transform import statements as something like "import applications.app_name.modules.x". If the import fails, it falls back on naive_importer

Variables Details [hide private]


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