Ubuntu Community Accomplishments

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

Proposed by Angelo Compagnucci on 2012-04-27
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
To merge this branch: bzr merge lp:~angeloc/ubuntu-community-accomplishments/fix-for-scripts
Reviewer Review Type Date Requested Status
Jono Bacon 2012-04-27 Pending
Review via email: mp+103892@code.launchpad.net
To post a comment you must log in.
83. By Angelo Compagnucci on 2012-05-04

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

Unmerged revisions

83. By Angelo Compagnucci on 2012-05-04

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

79. By Launchpad Translations on behalf of jonobacon on 2012-04-27

Launchpad automatic translations update.

Preview Diff

1=== modified file 'accomplishments/ubuntu-community/en/first-branch-merged.accomplishment'
2--- accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 2012-04-27 01:08:10 +0000
3+++ accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 2012-04-27 14:54:18 +0000
4@@ -8,7 +8,7 @@
5 needs-signing=true
6 needs-information=launchpad-email
7 summary = 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.
8- 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.
9+ 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.
10 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.
11 This trophy is awarded when you have successfully had one of your branches merged into another branch.
12 steps: 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
13
14=== modified file 'scripts/ubuntu-community/community-council-member.py'
15--- scripts/ubuntu-community/community-council-member.py 2012-04-25 21:51:50 +0000
16+++ scripts/ubuntu-community/community-council-member.py 2012-04-27 14:54:18 +0000
17@@ -2,12 +2,9 @@
18 import traceback, sys
19
20 from accomplishments.daemon import dbusapi
21-
22+from launchpadlib.launchpad import Launchpad
23
24 try:
25- import sys, os, pwd, subprocess
26- from launchpadlib.launchpad import Launchpad
27-
28 api = dbusapi.Accomplishments()
29 f = api.get_extra_information("ubuntu-community", "launchpad-email")
30 if bool(f[0]["launchpad-email"]) == False:
31
32=== modified file 'scripts/ubuntu-community/core-dev.py'
33--- scripts/ubuntu-community/core-dev.py 2012-04-25 21:51:50 +0000
34+++ scripts/ubuntu-community/core-dev.py 2012-04-27 14:54:18 +0000
35@@ -2,12 +2,9 @@
36 import traceback, sys
37
38 from accomplishments.daemon import dbusapi
39-
40+from launchpadlib.launchpad import Launchpad
41
42 try:
43- import sys, os, pwd, subprocess
44- from launchpadlib.launchpad import Launchpad
45-
46 api = dbusapi.Accomplishments()
47 f = api.get_extra_information("ubuntu-community", "launchpad-email")
48 if bool(f[0]["launchpad-email"]) == False:
49
50=== modified file 'scripts/ubuntu-community/first-branch-merged.py'
51--- scripts/ubuntu-community/first-branch-merged.py 2012-04-26 10:37:46 +0000
52+++ scripts/ubuntu-community/first-branch-merged.py 2012-04-27 14:54:18 +0000
53@@ -2,12 +2,9 @@
54 import traceback, sys
55
56 from accomplishments.daemon import dbusapi
57-
58+from launchpadlib.launchpad import Launchpad
59
60 try:
61- import sys, os, pwd, subprocess
62- from launchpadlib.launchpad import Launchpad
63-
64 api = dbusapi.Accomplishments()
65 f = api.get_extra_information("ubuntu-community", "launchpad-email")
66 if bool(f[0]["launchpad-email"]) == False:
67
68=== modified file 'scripts/ubuntu-community/first-bug-confirmed.py'
69--- scripts/ubuntu-community/first-bug-confirmed.py 2012-04-25 21:51:50 +0000
70+++ scripts/ubuntu-community/first-bug-confirmed.py 2012-04-27 14:54:18 +0000
71@@ -2,12 +2,9 @@
72 import traceback, sys
73
74 from accomplishments.daemon import dbusapi
75-
76+from launchpadlib.launchpad import Launchpad
77
78 try:
79- import sys, os, pwd, subprocess
80- from launchpadlib.launchpad import Launchpad
81-
82 api = dbusapi.Accomplishments()
83 f = api.get_extra_information("ubuntu-community", "launchpad-email")
84 if bool(f[0]["launchpad-email"]) == False:
85
86=== modified file 'scripts/ubuntu-community/fridge-editor.py'
87--- scripts/ubuntu-community/fridge-editor.py 2012-04-25 21:51:50 +0000
88+++ scripts/ubuntu-community/fridge-editor.py 2012-04-27 14:54:18 +0000
89@@ -2,12 +2,9 @@
90 import traceback, sys
91
92 from accomplishments.daemon import dbusapi
93-
94+from launchpadlib.launchpad import Launchpad
95
96 try:
97- import sys, os, pwd, subprocess
98- from launchpadlib.launchpad import Launchpad
99-
100 api = dbusapi.Accomplishments()
101 f = api.get_extra_information("ubuntu-community", "launchpad-email")
102 if bool(f[0]["launchpad-email"]) == False:
103
104=== modified file 'scripts/ubuntu-community/juju-charm-contributor.py'
105--- scripts/ubuntu-community/juju-charm-contributor.py 2012-04-25 21:51:50 +0000
106+++ scripts/ubuntu-community/juju-charm-contributor.py 2012-04-27 14:54:18 +0000
107@@ -2,12 +2,9 @@
108 import traceback, sys
109
110 from accomplishments.daemon import dbusapi
111-
112+from launchpadlib.launchpad import Launchpad
113
114 try:
115- import sys, os, pwd, subprocess
116- from launchpadlib.launchpad import Launchpad
117-
118 api = dbusapi.Accomplishments()
119 f = api.get_extra_information("ubuntu-community", "launchpad-email")
120 if bool(f[0]["launchpad-email"]) == False:
121
122=== modified file 'scripts/ubuntu-community/juju-charm-reviewer.py'
123--- scripts/ubuntu-community/juju-charm-reviewer.py 2012-04-25 21:51:50 +0000
124+++ scripts/ubuntu-community/juju-charm-reviewer.py 2012-04-27 14:54:18 +0000
125@@ -2,12 +2,9 @@
126 import traceback, sys
127
128 from accomplishments.daemon import dbusapi
129-
130+from launchpadlib.launchpad import Launchpad
131
132 try:
133- import sys, os, pwd, subprocess
134- from launchpadlib.launchpad import Launchpad
135-
136 api = dbusapi.Accomplishments()
137 f = api.get_extra_information("ubuntu-community", "launchpad-email")
138 if bool(f[0]["launchpad-email"]) == False:
139
140=== modified file 'scripts/ubuntu-community/loco-council-member.py'
141--- scripts/ubuntu-community/loco-council-member.py 2012-04-25 21:51:50 +0000
142+++ scripts/ubuntu-community/loco-council-member.py 2012-04-27 14:54:18 +0000
143@@ -2,12 +2,9 @@
144 import traceback, sys
145
146 from accomplishments.daemon import dbusapi
147-
148+from launchpadlib.launchpad import Launchpad
149
150 try:
151- import sys, os, pwd, subprocess
152- from launchpadlib.launchpad import Launchpad
153-
154 api = dbusapi.Accomplishments()
155 f = api.get_extra_information("ubuntu-community", "launchpad-email")
156 if bool(f[0]["launchpad-email"]) == False:
157
158=== modified file 'scripts/ubuntu-community/member-loco-team.py'
159--- scripts/ubuntu-community/member-loco-team.py 2012-04-25 21:51:50 +0000
160+++ scripts/ubuntu-community/member-loco-team.py 2012-04-27 14:54:18 +0000
161@@ -2,12 +2,9 @@
162 import traceback, sys
163
164 from accomplishments.daemon import dbusapi
165-
166+from launchpadlib.launchpad import Launchpad
167
168 try:
169- import sys, os, pwd, subprocess
170- from launchpadlib.launchpad import Launchpad
171-
172 api = dbusapi.Accomplishments()
173 f = api.get_extra_information("ubuntu-community", "launchpad-email")
174 if bool(f[0]["launchpad-email"]) == False:
175
176=== modified file 'scripts/ubuntu-community/motu.py'
177--- scripts/ubuntu-community/motu.py 2012-04-25 21:51:50 +0000
178+++ scripts/ubuntu-community/motu.py 2012-04-27 14:54:18 +0000
179@@ -2,12 +2,9 @@
180 import traceback, sys
181
182 from accomplishments.daemon import dbusapi
183-
184+from launchpadlib.launchpad import Launchpad
185
186 try:
187- import sys, os, pwd, subprocess
188- from launchpadlib.launchpad import Launchpad
189-
190 api = dbusapi.Accomplishments()
191 f = api.get_extra_information("ubuntu-community", "launchpad-email")
192 if bool(f[0]["launchpad-email"]) == False:
193
194=== modified file 'scripts/ubuntu-community/registered-on-launchpad.py'
195--- scripts/ubuntu-community/registered-on-launchpad.py 2012-04-25 21:51:50 +0000
196+++ scripts/ubuntu-community/registered-on-launchpad.py 2012-04-27 14:54:18 +0000
197@@ -2,19 +2,16 @@
198 import traceback, sys
199
200 from accomplishments.daemon import dbusapi
201-
202+from launchpadlib.launchpad import Launchpadbzr
203
204 try:
205- import sys, os, pwd, subprocess
206- from launchpadlib.launchpad import Launchpad
207-
208 api = dbusapi.Accomplishments()
209 f = api.get_extra_information("ubuntu-community", "launchpad-email")
210 if bool(f[0]["launchpad-email"]) == False:
211 sys.exit(4)
212 else:
213 email = f[0]["launchpad-email"]
214- # Get count of bugs reported by user from Launchpad, using email to
215+ # Get count of bugs repogeanrted by user from Launchpad, using email to
216 # identify
217 l = Launchpad.login_anonymously(
218 'ubuntu-community accomplishments', 'production')
219
220=== modified file 'scripts/ubuntu-community/report-first-bug.py'
221--- scripts/ubuntu-community/report-first-bug.py 2012-04-25 21:51:50 +0000
222+++ scripts/ubuntu-community/report-first-bug.py 2012-04-27 14:54:18 +0000
223@@ -2,12 +2,9 @@
224 import traceback, sys
225
226 from accomplishments.daemon import dbusapi
227-
228+from launchpadlib.launchpad import Launchpad
229
230 try:
231- import sys, os, pwd, subprocess
232- from launchpadlib.launchpad import Launchpad
233-
234 api = dbusapi.Accomplishments()
235 f = api.get_extra_information("ubuntu-community", "launchpad-email")
236 if bool(f[0]["launchpad-email"]) == False:
237
238=== modified file 'scripts/ubuntu-community/signed-code-of-conduct.py'
239--- scripts/ubuntu-community/signed-code-of-conduct.py 2012-04-25 21:51:50 +0000
240+++ scripts/ubuntu-community/signed-code-of-conduct.py 2012-04-27 14:54:18 +0000
241@@ -2,12 +2,9 @@
242 import traceback, sys
243
244 from accomplishments.daemon import dbusapi
245-
246+from launchpadlib.launchpad import Launchpad
247
248 try:
249- import sys, os, pwd, subprocess
250- from launchpadlib.launchpad import Launchpad
251-
252 api = dbusapi.Accomplishments()
253 f = api.get_extra_information("ubuntu-community", "launchpad-email")
254 if bool(f[0]["launchpad-email"]) == False:
255
256=== modified file 'scripts/ubuntu-community/technical-board-member.py'
257--- scripts/ubuntu-community/technical-board-member.py 2012-04-25 21:51:50 +0000
258+++ scripts/ubuntu-community/technical-board-member.py 2012-04-27 14:54:18 +0000
259@@ -2,12 +2,9 @@
260 import traceback, sys
261
262 from accomplishments.daemon import dbusapi
263-
264+from launchpadlib.launchpad import Launchpad
265
266 try:
267- import sys, os, pwd, subprocess
268- from launchpadlib.launchpad import Launchpad
269-
270 api = dbusapi.Accomplishments()
271 f = api.get_extra_information("ubuntu-community", "launchpad-email")
272 if bool(f[0]["launchpad-email"]) == False:
273
274=== modified file 'scripts/ubuntu-community/ubuntu-member.py'
275--- scripts/ubuntu-community/ubuntu-member.py 2012-04-25 21:51:50 +0000
276+++ scripts/ubuntu-community/ubuntu-member.py 2012-04-27 14:54:18 +0000
277@@ -1,13 +1,9 @@
278 #!/usr/bin/python
279 import traceback, sys
280-
281 from accomplishments.daemon import dbusapi
282-
283+from launchpadlib.launchpad import Launchpad
284
285 try:
286- import sys, os, pwd, subprocess
287- from launchpadlib.launchpad import Launchpad
288-
289 api = dbusapi.Accomplishments()
290 f = api.get_extra_information("ubuntu-community", "launchpad-email")
291 if bool(f[0]["launchpad-email"]) == False:
292
293=== modified file 'scripts/ubuntu-community/user-has-mugshot.py'
294--- scripts/ubuntu-community/user-has-mugshot.py 2012-04-25 21:51:50 +0000
295+++ scripts/ubuntu-community/user-has-mugshot.py 2012-04-27 14:54:18 +0000
296@@ -2,35 +2,36 @@
297
298 import traceback, sys
299 from accomplishments.daemon import dbusapi
300+from launchpadlib.launchpad import Launchpad
301
302 try:
303- import sys, os, pwd, subprocess
304- from launchpadlib.launchpad import Launchpad
305-
306- api = dbusapi.Accomplishments()
307- f = api.get_extra_information("ubuntu-community", "launchpad-email")
308-
309- if bool(f[0]["launchpad-email"]) == False:
310- sys.exit(4)
311- else:
312- email = f[0]["launchpad-email"]
313-
314- l=Launchpad.login_anonymously('ubuntu-community accomplishments','production')
315- me=l.people.getByEmail(email=email)
316-
317- if me == None:
318- sys.exit(1)
319- else:
320- try:
321- mugshot = me.mugshot
322- mugshot_handle = mugshot.open()
323- sys.exit(0)
324- except:
325- sys.exit(1)
326+ api = dbusapi.Accomplishments()
327+ f = api.get_extra_information("ubuntu-community", "launchpad-email")
328+
329+ if bool(f[0]["launchpad-email"]) == False:
330+ sys.exit(4)
331+ else:
332+ email = f[0]["launchpad-email"]
333+
334+ l=Launchpad.login_anonymously('ubuntu-community accomplishments',
335+ 'production')
336+
337+ me=l.people.getByEmail(email=email)
338+
339+ if me == None:
340+ sys.exit(1)
341+
342+ try:
343+ mugshot = me.mugshot
344+ mugshot_handle = mugshot.open()
345+ except:
346+ sys.exit(1)
347+
348+ sys.exit(0)
349
350 except SystemExit, e:
351- sys.exit(e.code)
352+ sys.exit(e.code)
353 except:
354- traceback.print_exc()
355- sys.exit(2)
356+ traceback.print_exc()
357+ sys.exit(2)
358

Subscribers

People subscribed via source and target branches

to all changes: