MCPcopy Index your code
hub / github.com/webpy/webpy / reload_mapping

Method reload_mapping

web/application.py:82–88  ·  view source on GitHub ↗

loadhook to reload mapping and fvars.

()

Source from the content-addressed store, hash-verified

80 module_name = modname(fvars)
81
82 def reload_mapping():
83 """loadhook to reload mapping and fvars."""
84 mod = __import__(module_name, None, None, [""])
85 mapping = getattr(mod, mapping_name, None)
86 if mapping:
87 self.fvars = mod.__dict__
88 self.init_mapping(mapping)
89
90 self.add_processor(loadhook(Reloader()))
91 if mapping_name and module_name:

Callers

nothing calls this directly

Calls 1

init_mappingMethod · 0.95

Tested by

no test coverage detected