Merge lp://staging/~gary/launchpad/bug632218 into lp://staging/launchpad/db-devel

Proposed by Gary Poster
Status: Merged
Merged at revision: 9759
Proposed branch: lp://staging/~gary/launchpad/bug632218
Merge into: lp://staging/launchpad/db-devel
Diff against target: 41 lines (+7/-1)
2 files modified
Makefile (+5/-1)
setup.py (+2/-0)
To merge this branch: bzr merge lp://staging/~gary/launchpad/bug632218
Reviewer Review Type Date Requested Status
Leonard Richardson (community) Approve
Gary Poster (community) release-critical Abstain
Graham Binns (community) release-critical Approve
Review via email: mp+34785@code.staging.launchpad.net

Description of the change

This is a release-critical branch to fix a critical bug.

The symptoms are described in the bug report.

LOSAs are hopefully going to verify the fix in production in a few hours. Meanwhile, I plan to go ahead and try to get this merged, because I believe it will work.

To fix this problem, I took the approach of adding an explicit step for compiling the templates within make compile. The cheapest yet most comprehensive way I could think of to do this was to process Launchpad's zcml. This should load all of our normal templates in the future. For now, it loads the Python file that registers the ++profile++ adapter and thus processes the template. You could argue that this is a side effect, and it is, but a defensible one: if zcml registers a view, the view should be instantiated with its template in order to be registered. If we ever want to allow for lazy template generation for some reason, we can deal with that then, and I don't see a big advantage for us anyway.

This also makes "make clean" clean up .pt.py files generated by chameleon.

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) :
review: Approve (release-critical)
Revision history for this message
Gary Poster (gary) wrote :

I can't figure out how to get rid of the extra release-critical. :-(

review: Abstain (release-critical)
Revision history for this message
Leonard Richardson (leonardr) :
review: Approve
Revision history for this message
Graham Binns (gmb) wrote :

On 7 September 2010 19:46, Gary Poster <email address hidden> wrote:
> Review: Abstain release-critical
> I can't figure out how to get rid of the extra release-critical. :-(

You can do that by getting someone else to give it r= :).

--
Graham Binns | PGP Key: EC66FA7D
http://launchpad.net/~gmb

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: