Merge lp:~gary/launchpad/bug589010 into lp:launchpad
Proposed by
Gary Poster
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10958 |
Proposed branch: | lp:~gary/launchpad/bug589010 |
Merge into: | lp:launchpad |
Diff against target: |
144 lines (+126/-0) 3 files modified
lib/canonical/launchpad/configure.zcml (+5/-0) lib/canonical/launchpad/webapp/initialization.py (+57/-0) lib/canonical/launchpad/webapp/tests/test_initialization.py (+64/-0) |
To merge this branch: | bzr merge lp:~gary/launchpad/bug589010 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | Approve | ||
Review via email: mp+26842@code.launchpad.net |
Commit message
hide namespace adapters from view lookup to fix bug 589010.
Description of the change
The purpose of this branch, and its approach, is best described in the description to bug 589010.
To try to summarize, registering a Zope URI namespace adapter effectively registers a view. This is not desired behavior. It is a failure in the framework, but fixing the framework properly is significantly backwards incompatible. Here, I make registrations that essentially hide namespace adapters from view lookup.
To run tests, use ./bin/test -vvt TestURLNamespace
To QA, create a project named "oops" or "resource" or "form" or "view" and try to view it in the browser.
Lint seems happy.
Thank you.
To post a comment you must log in.
This is clever. I will speak to you about launchpad.conf shortly after this review.
This is good to land after you make some trivial changes.
There should be two blank lines before each module member in initialization.py
test_initializa tion.py doc string is not PEP 256 friendly