Merge lp:~dhillon-v10/launchpad/fix-bug-410331 into lp:launchpad/db-devel
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~dhillon-v10/launchpad/fix-bug-410331 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
21 lines (+11/-0) 1 file modified
lib/lp/soyuz/browser/archive.py (+11/-0) |
| To merge this branch: | bzr merge lp:~dhillon-v10/launchpad/fix-bug-410331 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Julian Edwards (community) | code | 2010-02-08 | Resubmit on 2010-02-08 |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2010-02-20.
| Vikram Dhillon (dhillon-v10) wrote : | # |
| Julian Edwards (julian-edwards) wrote : | # |
Hi
Thanks for working on the fix!
There are quite a few problems with this branch, I'll take you through what you need to change to get this branch accepted:
1. Remove the XXX line - we only add those if there's an outstanding issue. For regular bug fixes they're just irrelevant.
2. You've taken my suggested default too literally! We want to substitute the words in the displayname string and default to meaningful names.
3. The code you've written won't do anything for the first PPA activated, something that you'd have noticed if there were tests :)
4. There are no tests! You should examine the file at
lib/lp/
The logic for the pre-filled displayname should be something like:
If the name field has data in it:
"PPA named <name> for <owner's name>"
else:
"PPA for <owner's name>"
where <owner's name> is self.context.
Regards
Julian.
| Vikram Dhillon (dhillon-v10) wrote : | # |
Julian, then something like this perhaps: (the spacing might not come out right)
if self.context.
return { 'displayname' : "PPA named " + self.context.
else:
return { 'displayname' : "PPA for " + self.context.
| Vikram Dhillon (dhillon-v10) wrote : | # |
Or better yet, something like this:
if self.context.
return { 'displayname' : "PPA named X for " + self.context.
else:
return { 'displayname' : "PPA for " + self.context.
- 10287. By Vikram Dhillon on 2010-02-14
-
Removing the XXX line
- 10288. By Vikram Dhillon on 2010-02-14
-
New display name style for a ppa
- 10289. By Vikram Dhillon on 2010-03-14
-
Fixed the default ppa naming
Unmerged revisions
- 10289. By Vikram Dhillon on 2010-03-14
-
Fixed the default ppa naming
- 10288. By Vikram Dhillon on 2010-02-14
-
New display name style for a ppa
- 10287. By Vikram Dhillon on 2010-02-14
-
Removing the XXX line
- 10286. By Vikram Dhillon on 2010-02-08
-
Adding a default value to the display name when the ppa first activates.

Adding a default display name in the file lib/lp/ soyuz/browser/ archive. py