Since the changes [#3883] to separate the repo tools from the core, the list of tools available on project creation is now populated dynamically. To both populate the inputs on the add_project
page and handle validation properly, the fields need to be populated in the NeighborhoodAddProject
form's __init__
. However, the form is instantiated on import and the necessary setup (registring app_globals
with pylons) has not been done yet, causing it to fail.
This causes issues with the test suite (since allura.controllers.test_neighborhood_root
gets discovered and imported, which imports allura.controllers.root
) and the push process (since it runs the smoke test which tries to verify that allura.controllers.root
imports without error). These have temporary work-arounds in place (commits [ade7d6] and [c11f79], and using --nosmoking
during Allura push), but the underlying issue needs to be resolved.
Works for me now: