launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #02649
[Merge] lp:~wallyworld/launchpad/add-link-to-noneformatter into lp:launchpad
The proposal to merge lp:~wallyworld/launchpad/add-link-to-noneformatter into lp:launchpad has been updated.
Description changed to:
See bug 714519. The tales link formatter should be able to render objects with value None.
== Implementation ==
Enhance NoneFormatter to support traversing the "link" attribute of None objects. Returns "None".
Enhance format_link() helper to handle None objects, allowing a specified "None" value to be returned. Default is "None".
== Tests ==
There were no tests for NoneFormatter so I added these.
bin/test -vvt TestNoneFormatterAPI
== Lint ==
Linting changed files:
lib/lp/app/browser/tales.py
lib/lp/app/browser/webservice.py
lib/lp/app/tests/test_tales.py
lib/lp/code/browser/sourcepackagerecipe.py
For more details, see:
https://code.launchpad.net/~wallyworld/launchpad/add-link-to-noneformatter/+merge/50088
--
https://code.launchpad.net/~wallyworld/launchpad/add-link-to-noneformatter/+merge/50088
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~wallyworld/launchpad/add-link-to-noneformatter into lp:launchpad.
References