Merge lp:~michael.nelson/launchpad/509370-access-non-unique-ppa-name into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Michael Nelson on 2010-02-12 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~michael.nelson/launchpad/509370-access-non-unique-ppa-name |
| Merge into: | lp:launchpad |
| Diff against target: |
382 lines (+90/-54) 12 files modified
lib/canonical/launchpad/doc/tales.txt (+17/-2) lib/canonical/launchpad/emailtemplates/ppa-subscription-new.txt (+3/-1) lib/canonical/launchpad/mailnotification.py (+9/-3) lib/canonical/launchpad/webapp/tales.py (+27/-1) lib/lp/soyuz/browser/archive.py (+0/-11) lib/lp/soyuz/browser/tests/archive-views.txt (+1/-13) lib/lp/soyuz/doc/archivesubscriber.txt (+4/-1) lib/lp/soyuz/stories/ppa/xx-private-ppa-subscription-stories.txt (+11/-11) lib/lp/soyuz/stories/ppa/xx-private-ppa-subscriptions.txt (+3/-3) lib/lp/soyuz/templates/archive-index.pt (+2/-2) lib/lp/soyuz/templates/person-archive-subscription.pt (+2/-3) lib/lp/soyuz/templates/person-archive-subscriptions.pt (+11/-3) |
| To merge this branch: | bzr merge lp:~michael.nelson/launchpad/509370-access-non-unique-ppa-name |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2010-02-10 | Approve on 2010-02-12 |
| Curtis Hovey (community) | ui | 2010-02-10 | Approve on 2010-02-11 |
| Matthew Revell (community) | archivesubscriber.txt | 2010-02-10 | Approve on 2010-02-10 |
|
Review via email:
|
|||
Commit Message
Ensures that email sent regarding private ppa subscriptions uniquely identifies the ppa by including the ppa ref (ppa:cprov/myppa), and additionally the description (to help the person receiving the email to understand what the purpose of the PPA is.
| Michael Nelson (michael.nelson) wrote : | # |
| Matthew Revell (matthew.revell) wrote : | # |
> Matt: can you check the wording change to the email template? You can see the
> change in expected output in doc/archivesubs
Looks good to me. +1
As an aside, should we link to some help in the email?
| Curtis Hovey (sinzui) wrote : | # |
Hi Michael.
This looks nice. I have a few remarks about the reset password button.
1) It should be in title case: [Reset Password]
2) Why is it missing padding between the text and the border in webkit?
I see a very narrow button in Epiphany, looks fine in Firefox.
| Michael Nelson (michael.nelson) wrote : | # |
> Hi Michael.
>
> This looks nice. I have a few remarks about the reset password button.
> 1) It should be in title case: [Reset Password]
Thanks Curtis, I updated this one.
> 2) Why is it missing padding between the text and the border in webkit?
> I see a very narrow button in Epiphany, looks fine in Firefox.
Chromium is fine, but yeah, I installed Epiphany and took a look. Eek.
So we've got a button {padding:0} in our style.css.
Take a look at:
http://
Both images are chromium, the first with the default 0 padding, the second with 8px padding on the button. As you can see, Chromium (and FF, etc.) even with zero padding, the content of the button (text in this case) has its own padding or margin, whereas epiphany doesn't. I couldn't find a quick solution (modifying the button padding obviously affects the other browsers), so I've switched the button, replacing it with a hidden input (for the value passed to the view) and a normal <input type="submit"..> for the button. This ensures that Epiphany appears just like Chromium/FF now.
| Curtis Hovey (sinzui) wrote : | # |
On Fri, 2010-02-12 at 12:43 +0000, Michael Nelson wrote:
> > Hi Michael.
...
> Take a look at:
> http://
>
> Both images are chromium, the first with the default 0 padding, the
> second with 8px padding on the button. As you can see, Chromium (and
> FF, etc.) even with zero padding, the content of the button (text in
> this case) has its own padding or margin, whereas epiphany doesn't. I
> couldn't find a quick solution (modifying the button padding obviously
> affects the other browsers), so I've switched the button, replacing it
> with a hidden input (for the value passed to the view) and a normal
> <input type="submit"..> for the button. This ensures that Epiphany
> appears just like Chromium/FF now.
>
> Thanks.
> http://
Your solution explains other bug reports if have seen about narrow
buttons, such as in the help pane.
I see that webkit has a plethora of styles, and I suspect the wrong one
is chosen by default. I only recently discovered that MacOS supports
extra narrow buttons and scrollbars:
-webkit-
May investigate this if I do another round of webkitisms.
--
__Curtis C. Hovey_________
http://

This branch addresses the issues in bug 509370, by ensuring that when a person is added as a subscriber to a private PPA, the email they receive informing them will include not only the display name of the PPA, but also the ppa name, and the description of the PPA.
It also updates the archive subscriptions page to include the PPA name (in addition to the display name) and a link to the owner (but not currently the description of the PPA as it's not viewable by the subscriber, but this could be addressed by bug 336779).
Matt: can you check the wording change to the email template? You can see the change in expected output in doc/archivesubs criber. txt
An example of the archivesubscrip tions page: people. canonical. com/~michaeln/ tmp/Screenshot- Private% 20PPA%20access% 20:%20Joe% 20Smith% 20-%20Chromium. png
http://
== Demo ==
To setup the subscription, run the following in a harness:
http:// pastebin. ubuntu. com/373304/
and then login as <email address hidden>:test and browse toz;
https:/ /launchpad. dev/~joesmith
then click on "View your private PPA subscriptions"
== Test == ppa-subscriptio n -t archivesubscrib er.txt
bin/test -vv -t xx-private-
== Pylint notices ==
lib/canonical/ launchpad/ mailnotificatio n.py MIMEMultipart' (No module named MIMEMultipart)
15: [F0401] Unable to import 'email.Header' (No module named Header)
16: [F0401] Unable to import 'email.MIMEText' (No module named MIMEText)
17: [F0401] Unable to import 'email.
18: [F0401] Unable to import 'email.MIMEMessage' (No module named MIMEMessage)
19: [F0401] Unable to import 'email.Utils' (No module named Utils)