Merge lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-twitter into lp:ubuntu-desktop-accomplishments

Proposed by s.fox
Status: Merged
Merge reported by: Rafał Cieślak
Merged at revision: not available
Proposed branch: lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-twitter
Merge into: lp:ubuntu-desktop-accomplishments
Diff against target: 206 lines (+176/-0)
5 files modified
accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment (+22/-0)
accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment (+22/-0)
accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment (+22/-0)
generated/accomplishments/ubuntu-desktop/gwibber-twitter.c (+80/-0)
scripts/ubuntu-desktop/networking/gwibber-twitter.py (+30/-0)
To merge this branch: bzr merge lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-twitter
Reviewer Review Type Date Requested Status
Ubuntu Desktop Accomplishments Reviewers Pending
Review via email: mp+109912@code.launchpad.net

Description of the change

Added new accomplishment - twitter in gwibber!

To post a comment you must log in.
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

I have merged this manually, because of #610471 in bazaar.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'accomplishments/ubuntu-desktop/bn/networking'
2=== added file 'accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment'
3--- accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
4+++ accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
5@@ -0,0 +1,22 @@
6+[accomplishment]
7+title = Gwibber - Added Twitter
8+description = You have added your twitter account to Gwibber
9+category = Networking
10+icon = twitter.png
11+author = s.fox <silver-fox@ubuntu.com>
12+collection = ubuntu-desktop
13+summary = Gwibber is the social media client built into Ubuntu Desktop. It is capable of viewing and posting status updates on popular microblogging and social sites such as Twitter, Facebook and Identi.ca
14+ This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
15+steps = Click the <i>Dash Home</i>
16+ Enter <i>Gwibber</i>
17+ You will be presented with the Gwibber application
18+ Click the <i>Gwibber</i> icon
19+ In the menu navigate to <b>Edit</b> <b>Accounts</b>
20+ Click the + button
21+ Select twitter and then click the Add button
22+ Click Authorise
23+ Enter your twitter details and click 'Authorize App'
24+tips = You can add several twitter accounts to gwibber
25+help = https://wiki.ubuntu.com/Gwibber
26+ http://live.gnome.org/Gwibber
27+
28
29=== added directory 'accomplishments/ubuntu-desktop/en/networking'
30=== added file 'accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment'
31--- accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
32+++ accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
33@@ -0,0 +1,22 @@
34+[accomplishment]
35+title=Gwibber - Added Twitter
36+description=You have added your twitter account to Gwibber
37+category=Networking:Gwibber
38+icon=twitter.png
39+author=s.fox <silver-fox@ubuntu.com>
40+collection=ubuntu-desktop
41+summary=Gwibber is the social media client built into Ubuntu Desktop. It is capable of viewing and posting status updates on popular microblogging and social sites such as Twitter, Facebook and Identi.ca
42+ This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
43+steps=Click the <i>Dash Home</i>
44+ Enter <i>Gwibber</i>
45+ You will be presented with the Gwibber application
46+ Click the <i>Gwibber</i> icon
47+ In the menu navigate to <b>Edit</b> <b>Accounts</b>
48+ Click the + button
49+ Select twitter and then click the Add button
50+ Click Authorise
51+ Enter your twitter details and click 'Authorize App'
52+tips=You can add several twitter accounts to gwibber
53+help=https://wiki.ubuntu.com/Gwibber
54+ http://live.gnome.org/Gwibber
55+
56
57=== added directory 'accomplishments/ubuntu-desktop/pl/networking'
58=== added file 'accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment'
59--- accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
60+++ accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
61@@ -0,0 +1,22 @@
62+[accomplishment]
63+title = Gwibber - Added Twitter
64+description = You have added your twitter account to Gwibber
65+category = Networking
66+icon = twitter.png
67+author = s.fox <silver-fox@ubuntu.com>
68+collection = ubuntu-desktop
69+summary = Gwibber is the social media client built into Ubuntu Desktop. It is capable of viewing and posting status updates on popular microblogging and social sites such as Twitter, Facebook and Identi.ca
70+ This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
71+steps = Click the <i>Dash Home</i>
72+ Enter <i>Gwibber</i>
73+ You will be presented with the Gwibber application
74+ Click the <i>Gwibber</i> icon
75+ In the menu navigate to <b>Edit</b> <b>Accounts</b>
76+ Click the + button
77+ Select twitter and then click the Add button
78+ Click Authorise
79+ Enter your twitter details and click 'Authorize App'
80+tips = You can add several twitter accounts to gwibber
81+help = https://wiki.ubuntu.com/Gwibber
82+ http://live.gnome.org/Gwibber
83+
84
85=== added file 'accomplishments/ubuntu-desktop/trophyimages/twitter.png'
86Binary files accomplishments/ubuntu-desktop/trophyimages/twitter.png 1970-01-01 00:00:00 +0000 and accomplishments/ubuntu-desktop/trophyimages/twitter.png 2012-06-12 19:55:22 +0000 differ
87=== added file 'generated/accomplishments/ubuntu-desktop/gwibber-twitter.c'
88--- generated/accomplishments/ubuntu-desktop/gwibber-twitter.c 1970-01-01 00:00:00 +0000
89+++ generated/accomplishments/ubuntu-desktop/gwibber-twitter.c 2012-06-12 19:55:22 +0000
90@@ -0,0 +1,80 @@
91+[accomplishment]
92+// ACCOMPLISHMENT: Edited Accomplishment Identification ('title' field)
93+// .
94+// ORIGINAL TRANSLATION:
95+// Edited Accomplishment Identification
96+
97+// .
98+// ----- TRANSLATION INSTRUCTIONS -----
99+// A short description of the accomplishment.
100+// NOTE: Describe this in the past tense as if it has been achieved (e.g. Registered On Launchpad).
101+_("ubuntu-desktop/accomplishments-edit-credentials_title")
102+// ACCOMPLISHMENT: Edited Accomplishment Identification ('description' field)
103+// .
104+// ORIGINAL TRANSLATION:
105+// You have edited your identity settings.
106+
107+// .
108+// ----- TRANSLATION INSTRUCTIONS -----
109+// Add a descriptive single-line summary of the accomplishment.
110+_("ubuntu-desktop/accomplishments-edit-credentials_description")
111+// ACCOMPLISHMENT: Edited Accomplishment Identification ('summary' field)
112+// .
113+// ORIGINAL TRANSLATION:
114+// For opportunities that require external verification (such as the <i>Ubuntu Community Accomplishments</i> collection, you need to provide various authentication details so that these opportunities can be checked for completion. You were asked for these details when you installed these collections to your computer.
115+// You may however need to change the details you provided, for example, such as if have changed your email address or other details.
116+// This accomplishment is awarded when you have edited these credentials.
117+
118+// .
119+// ----- TRANSLATION INSTRUCTIONS -----
120+// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
121+// NOTE: Break this into paragraphs by putting each paragraph on a new line.
122+// FORMATTING ALLOWED: <i> <strong> <tt>
123+_("ubuntu-desktop/accomplishments-edit-credentials_summary")
124+// ACCOMPLISHMENT: Edited Accomplishment Identification ('steps' field)
125+// .
126+// ORIGINAL TRANSLATION:
127+// Click the <i>Edit</i> menu in this application.
128+// Click the <i>Identification...</i> option.
129+// You will be presented with all of the different identity details that are required.
130+// Edit the boxes and then click the <i>OK</i> button to save them.
131+
132+// .
133+// ----- TRANSLATION INSTRUCTIONS -----
134+// Add a series of step-by-step instructions for how to accomplish this trophy.
135+// NOTE: Put each step on a new line
136+// FORMATTING ALLOWED: <i> <strong> <tt>
137+_("ubuntu-desktop/accomplishments-edit-credentials_steps")
138+// ACCOMPLISHMENT: Edited Accomplishment Identification ('tips' field)
139+// .
140+// ORIGINAL TRANSLATION:
141+// Always ensure that you enter the correct details.
142+
143+// .
144+// ----- TRANSLATION INSTRUCTIONS -----
145+// Add tips and best practise for accomplishing this trophy.
146+// NOTE: Put each tip on a new line
147+// FORMATTING ALLOWED: <i> <strong> <tt>
148+_("ubuntu-desktop/accomplishments-edit-credentials_tips")
149+// ACCOMPLISHMENT: Edited Accomplishment Identification ('pitfalls' field)
150+// .
151+// ORIGINAL TRANSLATION:
152+// Don't add someone else's identification details: the information you use will be shown in the trophy information so it will be clear that you were cheating!
153+
154+// .
155+// ----- TRANSLATION INSTRUCTIONS -----
156+// Add things the user should not do when working to accomplish this trophy.
157+// NOTE: Put each pitfall on a new line
158+// FORMATTING ALLOWED: <i> <strong> <tt>
159+_("ubuntu-desktop/accomplishments-edit-credentials_pitfalls")
160+// ACCOMPLISHMENT: Edited Accomplishment Identification ('help' field)
161+// .
162+// ORIGINAL TRANSLATION:
163+// Click the <i>Help</i> menu.
164+
165+// .
166+// ----- TRANSLATION INSTRUCTIONS -----
167+// Add related help resources (e.g. IRC channel names).
168+// NOTE: Put each help resource on a new line
169+// FORMATTING ALLOWED: <i> <strong> <tt>
170+_("ubuntu-desktop/accomplishments-edit-credentials_help")
171
172=== added directory 'scripts/ubuntu-desktop/networking'
173=== added file 'scripts/ubuntu-desktop/networking/gwibber-twitter.py'
174--- scripts/ubuntu-desktop/networking/gwibber-twitter.py 1970-01-01 00:00:00 +0000
175+++ scripts/ubuntu-desktop/networking/gwibber-twitter.py 2012-06-12 19:55:22 +0000
176@@ -0,0 +1,30 @@
177+#!/usr/bin/python
178+
179+from dbus.mainloop.glib import DBusGMainLoop
180+import gobject
181+import json, gwibber.lib
182+
183+DBusGMainLoop(set_as_default=True)
184+loop = gobject.MainLoop()
185+
186+gw = gwibber.lib.GwibberPublic()
187+accounts = json.loads(gw.GetAccounts())
188+
189+#go through json array picking up ALL services
190+arrayServices = []
191+i = 0
192+for service in accounts:
193+ arrayServices.append(accounts[i]['service'])
194+ i = i +1
195+
196+#make array contain only unique services
197+tempArray = {}
198+for x in arrayServices: tempArray[x] = 0
199+arrayServices = tempArray.keys()
200+
201+if u'twitter' in arrayServices:
202+ #user twitter setup on gwibber
203+ sys.exit(0)
204+else:
205+ #user does not have twitter setup on gwibber
206+ sys.exit(1)

Subscribers

People subscribed via source and target branches