Merge lp:~abentley/launchpad/specification-cleanup into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-09-27 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16057 |
| Proposed branch: | lp:~abentley/launchpad/specification-cleanup |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~abentley/launchpad/storm-sprint-queries |
| Diff against target: |
749 lines (+85/-181) 25 files modified
lib/lp/_schema_circular_imports.py (+2/-2) lib/lp/app/browser/root.py (+1/-1) lib/lp/blueprints/browser/configure.zcml (+9/-3) lib/lp/blueprints/browser/specification.py (+18/-1) lib/lp/blueprints/browser/specificationtarget.py (+1/-1) lib/lp/blueprints/doc/specification.txt (+1/-4) lib/lp/blueprints/interfaces/specification.py (+2/-2) lib/lp/blueprints/interfaces/specificationtarget.py (+6/-19) lib/lp/blueprints/model/specification.py (+8/-19) lib/lp/blueprints/model/sprint.py (+0/-9) lib/lp/blueprints/templates/specifications-portlet-latestcompleted.pt (+1/-1) lib/lp/blueprints/templates/specifications-portlet-latestregistered.pt (+1/-1) lib/lp/blueprints/templates/specifications-portlet-stats.pt (+1/-1) lib/lp/blueprints/tests/test_hasspecifications.py (+13/-13) lib/lp/bugs/model/tests/test_bugtask.py (+1/-1) lib/lp/registry/browser/__init__.py (+3/-2) lib/lp/registry/doc/distribution.txt (+1/-1) lib/lp/registry/doc/milestone.txt (+2/-2) lib/lp/registry/doc/projectgroup.txt (+14/-14) lib/lp/registry/model/distribution.py (+0/-10) lib/lp/registry/model/distroseries.py (+0/-9) lib/lp/registry/model/person.py (+0/-13) lib/lp/registry/model/product.py (+0/-13) lib/lp/registry/model/productseries.py (+0/-13) lib/lp/registry/model/projectgroup.py (+0/-26) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/specification-cleanup |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-09-27 | Approve on 2012-09-27 | |
|
Review via email:
|
|||
Commit Message
Reorganize specification access methods.
Description of the Change
= Summary =
Reorginize specification list methods
== Pre-implementation notes ==
None
== LOC Rationale ==
Part of private projects
== Implementation details ==
Supporting privacy in specification listings requires taking a user as input when listing specs. Ideally, that means supplying the user in the view code.
This doesn't actually add privacy support, but it prepares the methods so that it can be implemented cleanly.
specification_count becomes a method so that it can start accepting a user as a parameter.
all_specifications and valid_specifica
The implementation of latest_
== Tests ==
Everything, really.
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
408: redefinition of function 'date_next_
^^^ This is an acceptable case of re-definition. It's creating a setter.

This looks good.