Merge lp:~jcsackett/launchpad/no-releases-for-projectmilestone into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-12-11 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16364 |
| Proposed branch: | lp:~jcsackett/launchpad/no-releases-for-projectmilestone |
| Merge into: | lp:launchpad |
| Diff against target: |
39 lines (+23/-1) 2 files modified
lib/lp/registry/browser/milestone.py (+1/-1) lib/lp/registry/browser/tests/test_milestonetag.py (+22/-0) |
| To merge this branch: | bzr merge lp:~jcsackett/launchpad/no-releases-for-projectmilestone |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | 2012-12-11 | Approve on 2012-12-11 | |
|
Review via email:
|
|||
Commit Message
Fixes milestone views to handle projectmileston
Description of the Change
Summary
=======
ProjectMileston
the context will always have this if they are of type IMilestoneData. This
leads to an OOPS.
The view should simply set the release data to None if the attribute doesn't
exist, and shouldn't assume the attribute does exist.
Preimp
======
None.
Implementation
==============
The assignment of `self.release = context.
with an assignment to the result of getattr on the context, defaulting to None
if the atter doesn't exist.
Tests
=====
bin/test -vvct test_projectgro
QA
==
Load the url in the OOPS; it should load.
LoC
===
Part of private projects.
Lint
====
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
