Merge lp:~jcsackett/launchpad/unsubscription into lp:launchpad
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11381 |
Proposed branch: | lp:~jcsackett/launchpad/unsubscription |
Merge into: | lp:launchpad |
Diff against target: |
80 lines (+55/-3) 2 files modified
lib/lp/registry/browser/tests/test_mailinglists.py (+52/-0) lib/lp/registry/templates/team-portlet-mailinglist.pt (+3/-3) |
To merge this branch: | bzr merge lp:~jcsackett/launchpad/unsubscription |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+32680@code.launchpad.net |
Commit message
Updates conditions on showing subscribe/
Description of the change
Summary
Fixes the conditions under which a user can see a subscribe/
Proposed fix
Change the conditions under which a user sees subscribe/
Pre-implementation notes
After looking at the bug with Curtis Hovey (sinzui) we discovered that the unsubscribe directions actually were correct for some teams, but not all where you might be subscribed. We realized the problem was in the template checking for direct membership rather than participation.
Implementation details
The section that displays the subscribe/
Demo and Q/A
bin/test -vvc -m lp.registry.
lint
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
Hi Jon.
This looks good to land after you have addressed my nitpick about the docstring and id.
> === added file 'lib/lp/ registry/ browser/ tests/test_ mailinglists. py' registry/ browser/ tests/test_ mailinglists. py 1970-01-01 00:00:00 +0000 registry/ browser/ tests/test_ mailinglists. py 2010-08-17 16:07:46 +0000
> --- lib/lp/
> +++ lib/lp/
...
+class MailingListSubs criptionControl sTestCase( TestCaseWithFac tory):
+ """Tests to ensure the rendering of subscribe and unsubscribe
+ controls on the team page."""
PEP 257 states that a docstring has a single line synopses. unsubscribe to mailing list content."""
"""Verify the team index subscribe/
...
> === modified file 'lib/lp/ registry/ templates/ team-portlet- mailinglist. pt' registry/ templates/ team-portlet- mailinglist. pt 2010-06-04 15:37:24 +0000 registry/ templates/ team-portlet- mailinglist. pt 2010-08-17 16:07:46 +0000 Policy: </strong> "view/user_ is_active_ member" > "view/userIsPar ticipant" > subscribe- to-list "view/user_ can_subscribe_ to_list" > list.subscribe" class="sprite add"
> --- lib/lp/
> +++ lib/lp/
> @@ -19,10 +19,10 @@
> <strong>
> You must be a team member to subscribe to the team mailing list.
> <br/>
> - <tal:member condition=
> + <tal:member condition=
> <tal:can-
> condition=
> - <a class="sprite add"
> + <a id="link.
This is not a valid CSS3 id use dashes, no dots, no underscores. We know that
zope and some of out code are making bad ids. We need to get the site ready
for the CSS3 standard.