Merge lp:~abentley/launchpad/restricted-diffs into lp:launchpad
Proposed by
Aaron Bentley
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||||||
Approved revision: | not available | ||||||||
Merged at revision: | not available | ||||||||
Proposed branch: | lp:~abentley/launchpad/restricted-diffs | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
109 lines (+36/-6) 4 files modified
lib/lp/code/browser/configure.zcml (+6/-0) lib/lp/code/browser/diff.py (+12/-4) lib/lp/code/browser/tests/test_tales.py (+12/-1) lib/lp/testing/factory.py (+6/-1) |
||||||||
To merge this branch: | bzr merge lp:~abentley/launchpad/restricted-diffs | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Review via email: mp+19999@code.launchpad.net |
To post a comment you must log in.
= Summary =
Fix bug #525857: "attempt to get canonical_url of a review diff"
== Proposed fix ==
Implement a TAL formatter for IDiff
== Pre-implementation notes ==
None
== Implementation details == atterAPI a subclass of DiffFormatterAPI, and used "template
Made PreviewDiffForm
method" to get the URL.
As a drive-by, added makeStaticDiff to the LaunchpadObject Factory.
== Tests ==
-t bin/test test_tales -t TestDiffFormatter
== Demo and Q/A == /code.edge. launchpad. net/~adeuring/ launchpad/ hwdb-dmi- data-parser/ +merge/ 8881.
Go to an old merge proposal, like
https:/
This should display correctly, not oops.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/browser/ configure. zcml code/browser/ diff.py testing/ factory. py code/browser/ tests/test_ tales.py
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ testing/ factory. py Factory. makeRecipe] Unable to import 'bzrlib. plugins. builder. recipe' (No module named builder)
1627: [F0401, LaunchpadObject
lib/lp/ code/browser/ tests/test_ tales.py Formatter. test_creation_ method] Comma not followed by a space assertEqual( {'filename' : (3,2)}, preview.diffstat)
70: [C0324, TestPreviewDiff
self.
^^