Part of canonical.launchpad.webapp
Function | adapter_mask | Undocumented |
Function | handle_process_start | Post-process ZCML configuration. |
Function | fix_up_namespace_traversers | Block namespace traversers from being found as normal views. |
Normal configuration should happen in ZCML (or whatever our Zope configuration standard might become in the future). The only kind of configuration that should happen here is automated fix-up configuration. Code below should call functions, each of which explains why it cannot be performed in ZCML.
Also see the lp_sitecustomize module for initialization that is done when Python first starts.
See bug 589010.
This is done in a function rather than in ZCML because automation is appropriate: there has already been an explicit registration of the namespace, and having to also say "please don't assume it is a view" is a DRY violation that we can avoid.