Merge lp:~adeuring/launchpad/bug-344054 into lp:launchpad
Proposed by
Abel Deuring
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~adeuring/launchpad/bug-344054 |
Merge into: | lp:launchpad |
Diff against target: |
231 lines (+111/-56) 4 files modified
lib/lp/bugs/browser/bug.py (+16/-1) lib/lp/bugs/stories/bugattachments/20-edit-bug-attachment.txt (+46/-30) lib/lp/bugs/stories/bugs/xx-bug-index.txt (+3/-3) lib/lp/bugs/templates/bug-portlet-attachments.pt (+46/-22) |
To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-344054 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Albisetti (community) | ui | Approve | |
Curtis Hovey (community) | ui* | Approve | |
Gavin Panella (community) | code | Approve | |
Review via email: mp+15857@code.launchpad.net |
To post a comment you must log in.
This branch adds a separate portlet to show patches on a bug page; the portlet does no longer show them (bug 344054).
The implementation is quite straightfoward, I think:
- the template lib/lp/ bugs/templates/ bug-portlet- attachments. pt now creates two portlets instead of one
- class Bug has two new properties returning the list of patches and non-patch attachmentsm respectively
- doc test for the new properties
- changed pagetest.
test: ./bin/test -vv -f lp.bugs bugattachments
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/configure. zcml bugs/doc/ bugattachments. txt bugs/interfaces /bug.py bugs/model/ bug.py bugs/stories/ bugattachments/ 20-edit- bug-attachment. txt bugs/templates/ bug-portlet- attachments. pt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ bugs/interfaces /bug.py declarations' (No module named restful) fields' (No module named restful) interface' (No module named restful) TextLine( ), is_patch=Bool(), type=TextLine( ), description=Text()) factory_ operation( IBugAttachment, []) owner, data, comment, filename, is_patch=False, type=None, description=None): ions] Operator not preceded by a space =List( _("Nominations to search through."), type=Reference( schema= Interface) , # IBugNomination False)) returns_ collection_ of(Interface) # IBugNomination read_operation( ) target= None, nominations=None): fected] Operator not preceded by a space with(user= REQUEST_ USER) write_operation () d(user, affected=True): Visibility] Operator not preceded by a space Bool(title= _('Show this comment?'), required=True)) with(user= REQUEST_ USER) write_operation () ility(user, comment_number, visible): ission] Operator not preceded by a space write_operation () n(submission) : bmission] Operator not preceded by a space write_operation () ion(submission) :
49: [F0401] Unable to import 'lazr.restful.
55: [F0401] Unable to import 'lazr.restful.
56: [F0401] Unable to import 'lazr.restful.
476: [C0322, IBug.addAttachment] Operator not preceded by a space
comment=Text(), filename=
^
content_
@export_
def addAttachment(
content_
611: [C0322, IBug.getNominat
nominations
^
title=
value_
required=
@operation_
@export_
def getNominations(
691: [C0322, IBug.markUserAf
required=False, default=True))
^
@call_
@export_
def markUserAffecte
706: [C0322, IBug.setComment
required=True),
^
visible=
@call_
@export_
def setCommentVisib
718: [C0322, IBug.linkHWSubm
Interface, title=_('A HWDB submission'), required=True))
^
@export_
def linkHWSubmissio
725: [C0322, IBug.unlinkHWSu
Interface, title=_('A HWDB submission'), required=True))
^
@export_
def unlinkHWSubmiss
lib/lp/ bugs/model/ bug.py .event' (No module named lifecycle)
25: [F0401] Unable to import 'email.Utils' (No module named Utils)
38: [F0401] Unable to import 'lazr.lifecycle
40: [F0401] Unable to import 'lazr.lifecyc...