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

Module custom_import

source code

Classes [hide private]
  _BaseImporter
The base importer.
  _DateTrackerImporter
An importer tracking the date of the module files and reloading them when they have changed.
  _Web2pyImporter
The standard web2py importer.
  _Web2pyDateTrackerImporter
Like _Web2pyImporter but using a _DateTrackerImporter.
Functions [hide private]
 
custom_import_install(web2py_path) source code
 
is_tracking_changes()
Returns: True: neo_importer is tracking changes made to Python source files.
source code
 
track_changes(track=True)
Tell neo_importer to start/stop tracking changes made to Python modules.
source code
Variables [hide private]
  _web2py_importer = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  _web2py_date_tracker_importer = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  _web2py_path = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  _is_tracking_changes = True
Function Details [hide private]

is_tracking_changes()

source code 
Returns:
True: neo_importer is tracking changes made to Python source files. False: neo_import does not reload Python modules.

track_changes(track=True)

source code 
Tell neo_importer to start/stop tracking changes made to Python modules.
Parameters:
  • track - True: Start tracking changes. False: Stop tracking changes.