Merge lp:~angeloc/ubuntu-community-accomplishments/fix-for-scripts into lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1

Proposed by Angelo Compagnucci
Status: Superseded
Proposed branch: lp:~angeloc/ubuntu-community-accomplishments/fix-for-scripts
Merge into: lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1
Diff against target: 357 lines (+44/-89)
17 files modified
accomplishments/ubuntu-community/en/first-branch-merged.accomplishment (+1/-1)
scripts/ubuntu-community/community-council-member.py (+1/-4)
scripts/ubuntu-community/core-dev.py (+1/-4)
scripts/ubuntu-community/first-branch-merged.py (+1/-4)
scripts/ubuntu-community/first-bug-confirmed.py (+1/-4)
scripts/ubuntu-community/fridge-editor.py (+1/-4)
scripts/ubuntu-community/juju-charm-contributor.py (+1/-4)
scripts/ubuntu-community/juju-charm-reviewer.py (+1/-4)
scripts/ubuntu-community/loco-council-member.py (+1/-4)
scripts/ubuntu-community/member-loco-team.py (+1/-4)
scripts/ubuntu-community/motu.py (+1/-4)
scripts/ubuntu-community/registered-on-launchpad.py (+2/-5)
scripts/ubuntu-community/report-first-bug.py (+1/-4)
scripts/ubuntu-community/signed-code-of-conduct.py (+1/-4)
scripts/ubuntu-community/technical-board-member.py (+1/-4)
scripts/ubuntu-community/ubuntu-member.py (+1/-5)
scripts/ubuntu-community/user-has-mugshot.py (+27/-26)
To merge this branch: bzr merge lp:~angeloc/ubuntu-community-accomplishments/fix-for-scripts
Reviewer Review Type Date Requested Status
Jono Bacon Pending
Review via email: mp+103892@code.launchpad.net
To post a comment you must log in.
83. By Angelo Compagnucci

modified:
  scripts/ubuntu-community/registered-on-launchpad.py
   Fixed typo

Unmerged revisions

83. By Angelo Compagnucci

modified:
  scripts/ubuntu-community/registered-on-launchpad.py
   Fixed typo

79. By Launchpad Translations on behalf of jonobacon

Launchpad automatic translations update.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'accomplishments/ubuntu-community/en/first-branch-merged.accomplishment'
--- accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 2012-04-27 01:08:10 +0000
+++ accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 2012-04-27 14:54:18 +0000
@@ -8,7 +8,7 @@
8needs-signing=true8needs-signing=true
9needs-information=launchpad-email9needs-information=launchpad-email
10summary = A core part of Launchpad is the ability to host different branches of code (using the Bazaar version control system) and for other people to propose improvements and changes to those branches.10summary = A core part of Launchpad is the ability to host different branches of code (using the Bazaar version control system) and for other people to propose improvements and changes to those branches.
11 What commonly happens here is that you <i>branch</i> the code from launchpad (for example, running <tt>bzr branch lp:the-project</tt>) and this downloads the current main branch to your computer. You then work on improvements to that branch and commit your changes using <tt>bzr commit</tt>. You then uplod your changes to Launchpad using <tt>bzr push</tt> so others can see your work.11 What commonly happens here is that you <i>branch</i> the code from launchpad (for example, running <tt>bzr branch lp:the-project</tt>) and this downloads the current main branch to your computer. You then work on improvements to that branch and commit your changes using <tt>bzr commit</tt>. You then upload your changes to Launchpad using <tt>bzr push</tt> so others can see your work.
12 You can now propose that your branch is merged into another branch. This means that the owner of the original branch that you improved will contribute your improvements to it, this merging in your work.12 You can now propose that your branch is merged into another branch. This means that the owner of the original branch that you improved will contribute your improvements to it, this merging in your work.
13 This trophy is awarded when you have successfully had one of your branches merged into another branch.13 This trophy is awarded when you have successfully had one of your branches merged into another branch.
14steps: You first need to perform a <i>Merge Proposal</i> to propose your branch is merged into another one. Go to the Launchpad page for the branch that you uploaded and you should see a Propose XXXXXXXXXX14steps: You first need to perform a <i>Merge Proposal</i> to propose your branch is merged into another one. Go to the Launchpad page for the branch that you uploaded and you should see a Propose XXXXXXXXXX
1515
=== modified file 'scripts/ubuntu-community/community-council-member.py'
--- scripts/ubuntu-community/community-council-member.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/community-council-member.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/core-dev.py'
--- scripts/ubuntu-community/core-dev.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/core-dev.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/first-branch-merged.py'
--- scripts/ubuntu-community/first-branch-merged.py 2012-04-26 10:37:46 +0000
+++ scripts/ubuntu-community/first-branch-merged.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/first-bug-confirmed.py'
--- scripts/ubuntu-community/first-bug-confirmed.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/first-bug-confirmed.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/fridge-editor.py'
--- scripts/ubuntu-community/fridge-editor.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/fridge-editor.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/juju-charm-contributor.py'
--- scripts/ubuntu-community/juju-charm-contributor.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/juju-charm-contributor.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/juju-charm-reviewer.py'
--- scripts/ubuntu-community/juju-charm-reviewer.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/juju-charm-reviewer.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/loco-council-member.py'
--- scripts/ubuntu-community/loco-council-member.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/loco-council-member.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/member-loco-team.py'
--- scripts/ubuntu-community/member-loco-team.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/member-loco-team.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/motu.py'
--- scripts/ubuntu-community/motu.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/motu.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/registered-on-launchpad.py'
--- scripts/ubuntu-community/registered-on-launchpad.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/registered-on-launchpad.py 2012-04-27 14:54:18 +0000
@@ -2,19 +2,16 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpadbzr
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
14 sys.exit(4)11 sys.exit(4)
15 else:12 else:
16 email = f[0]["launchpad-email"]13 email = f[0]["launchpad-email"]
17 # Get count of bugs reported by user from Launchpad, using email to14 # Get count of bugs repogeanrted by user from Launchpad, using email to
18 # identify15 # identify
19 l = Launchpad.login_anonymously(16 l = Launchpad.login_anonymously(
20 'ubuntu-community accomplishments', 'production')17 'ubuntu-community accomplishments', 'production')
2118
=== modified file 'scripts/ubuntu-community/report-first-bug.py'
--- scripts/ubuntu-community/report-first-bug.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/report-first-bug.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/signed-code-of-conduct.py'
--- scripts/ubuntu-community/signed-code-of-conduct.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/signed-code-of-conduct.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/technical-board-member.py'
--- scripts/ubuntu-community/technical-board-member.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/technical-board-member.py 2012-04-27 14:54:18 +0000
@@ -2,12 +2,9 @@
2import traceback, sys2import traceback, sys
33
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
55from launchpadlib.launchpad import Launchpad
66
7try:7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()8 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:10 if bool(f[0]["launchpad-email"]) == False:
1411
=== modified file 'scripts/ubuntu-community/ubuntu-member.py'
--- scripts/ubuntu-community/ubuntu-member.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/ubuntu-member.py 2012-04-27 14:54:18 +0000
@@ -1,13 +1,9 @@
1#!/usr/bin/python1#!/usr/bin/python
2import traceback, sys2import traceback, sys
3
4from accomplishments.daemon import dbusapi3from accomplishments.daemon import dbusapi
54from launchpadlib.launchpad import Launchpad
65
7try:6try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()7 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")8 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:9 if bool(f[0]["launchpad-email"]) == False:
1410
=== modified file 'scripts/ubuntu-community/user-has-mugshot.py'
--- scripts/ubuntu-community/user-has-mugshot.py 2012-04-25 21:51:50 +0000
+++ scripts/ubuntu-community/user-has-mugshot.py 2012-04-27 14:54:18 +0000
@@ -2,35 +2,36 @@
22
3import traceback, sys3import traceback, sys
4from accomplishments.daemon import dbusapi4from accomplishments.daemon import dbusapi
5from launchpadlib.launchpad import Launchpad
56
6try:7try:
7 import sys, os, pwd, subprocess8 api = dbusapi.Accomplishments()
8 from launchpadlib.launchpad import Launchpad9 f = api.get_extra_information("ubuntu-community", "launchpad-email")
910
10 api = dbusapi.Accomplishments()11 if bool(f[0]["launchpad-email"]) == False:
11 f = api.get_extra_information("ubuntu-community", "launchpad-email")12 sys.exit(4)
1213 else:
13 if bool(f[0]["launchpad-email"]) == False:14 email = f[0]["launchpad-email"]
14 sys.exit(4)15
15 else:16 l=Launchpad.login_anonymously('ubuntu-community accomplishments',
16 email = f[0]["launchpad-email"]17 'production')
1718
18 l=Launchpad.login_anonymously('ubuntu-community accomplishments','production')19 me=l.people.getByEmail(email=email)
19 me=l.people.getByEmail(email=email)20
2021 if me == None:
21 if me == None:22 sys.exit(1)
22 sys.exit(1)23
23 else:24 try:
24 try:25 mugshot = me.mugshot
25 mugshot = me.mugshot26 mugshot_handle = mugshot.open()
26 mugshot_handle = mugshot.open()27 except:
27 sys.exit(0)28 sys.exit(1)
28 except:29
29 sys.exit(1)30 sys.exit(0)
3031
31except SystemExit, e:32except SystemExit, e:
32 sys.exit(e.code)33 sys.exit(e.code)
33except:34except:
34 traceback.print_exc()35 traceback.print_exc()
35 sys.exit(2)36 sys.exit(2)
3637

Subscribers

People subscribed via source and target branches

to all changes: