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

Proposed by s.fox
Status: Merged
Merged at revision: 23
Proposed branch: lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-facebook
Merge into: lp:ubuntu-desktop-accomplishments
Diff against target: 211 lines (+181/-0)
5 files modified
accomplishments/ubuntu-desktop/bn/networking/gwibber-facebook.accomplishment (+22/-0)
accomplishments/ubuntu-desktop/en/networking/gwibber-facebook.accomplishment (+22/-0)
accomplishments/ubuntu-desktop/pl/networking/gwibber-facebook.accomplishment (+22/-0)
generated/accomplishments/ubuntu-desktop/gwibber-facebook.c (+81/-0)
scripts/ubuntu-desktop/networking/gwibber-facebook.py (+34/-0)
To merge this branch: bzr merge lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-facebook
Reviewer Review Type Date Requested Status
Ubuntu Desktop Accomplishments Reviewers Pending
Review via email: mp+109918@code.launchpad.net

Description of the change

added facebook gwibber accomplishment

To post a comment you must log in.

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-facebook.accomplishment'
3--- accomplishments/ubuntu-desktop/bn/networking/gwibber-facebook.accomplishment 1970-01-01 00:00:00 +0000
4+++ accomplishments/ubuntu-desktop/bn/networking/gwibber-facebook.accomplishment 2012-06-12 20:16:17 +0000
5@@ -0,0 +1,22 @@
6+[accomplishment]
7+title=Gwibber - Added Facebook
8+description=You have added your Facebook account to Gwibber
9+category=Networking:Gwibber
10+icon=facebook.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>Facebook</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 Facebook and then click the Add button
22+ Click Authorise
23+ Enter your Facebook details and click 'Log In'
24+tips=You can add several Facebook 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-facebook.accomplishment'
31--- accomplishments/ubuntu-desktop/en/networking/gwibber-facebook.accomplishment 1970-01-01 00:00:00 +0000
32+++ accomplishments/ubuntu-desktop/en/networking/gwibber-facebook.accomplishment 2012-06-12 20:16:17 +0000
33@@ -0,0 +1,22 @@
34+[accomplishment]
35+title=Gwibber - Added Facebook
36+description=You have added your Facebook account to Gwibber
37+category=Networking:Gwibber
38+icon=facebook.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>Facebook</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 Facebook and then click the Add button
50+ Click Authorise
51+ Enter your Facebook details and click 'Log In'
52+tips=You can add several Facebook 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-facebook.accomplishment'
59--- accomplishments/ubuntu-desktop/pl/networking/gwibber-facebook.accomplishment 1970-01-01 00:00:00 +0000
60+++ accomplishments/ubuntu-desktop/pl/networking/gwibber-facebook.accomplishment 2012-06-12 20:16:17 +0000
61@@ -0,0 +1,22 @@
62+[accomplishment]
63+title=Gwibber - Added Facebook
64+description=You have added your Facebook account to Gwibber
65+category=Networking:Gwibber
66+icon=facebook.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>Facebook</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 Facebook and then click the Add button
78+ Click Authorise
79+ Enter your Facebook details and click 'Log In'
80+tips=You can add several Facebook 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/facebook.png'
86Binary files accomplishments/ubuntu-desktop/trophyimages/facebook.png 1970-01-01 00:00:00 +0000 and accomplishments/ubuntu-desktop/trophyimages/facebook.png 2012-06-12 20:16:17 +0000 differ
87=== added file 'generated/accomplishments/ubuntu-desktop/gwibber-facebook.c'
88--- generated/accomplishments/ubuntu-desktop/gwibber-facebook.c 1970-01-01 00:00:00 +0000
89+++ generated/accomplishments/ubuntu-desktop/gwibber-facebook.c 2012-06-12 20:16:17 +0000
90@@ -0,0 +1,81 @@
91+[accomplishment]
92+// ACCOMPLISHMENT: Used Rhythmbox ('title' field)
93+// .
94+// ORIGINAL TRANSLATION:
95+// Used Rhythmbox
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/musicinrhythmbox_title")
102+// ACCOMPLISHMENT: Used Rhythmbox ('description' field)
103+// .
104+// ORIGINAL TRANSLATION:
105+// You have used Rhythmbox.
106+
107+// .
108+// ----- TRANSLATION INSTRUCTIONS -----
109+// Add a descriptive single-line summary of the accomplishment.
110+_("ubuntu-desktop/musicinrhythmbox_description")
111+// ACCOMPLISHMENT: Used Rhythmbox ('summary' field)
112+// .
113+// ORIGINAL TRANSLATION:
114+// Rhythmbox is a music player in Ubuntu. You can use it to play music from local or shared music stores, or on-line stream radios.
115+// This accomplishment is awarded when you have <b>added music</b> to your Rhythmbox library
116+
117+// .
118+// ----- TRANSLATION INSTRUCTIONS -----
119+// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
120+// NOTE: Break this into paragraphs by putting each paragraph on a new line.
121+// FORMATTING ALLOWED: <i> <strong> <tt>
122+_("ubuntu-desktop/musicinrhythmbox_summary")
123+// ACCOMPLISHMENT: Used Rhythmbox ('steps' field)
124+// .
125+// ORIGINAL TRANSLATION:
126+// Click the <i>Dash Home</i>
127+// Enter <i>Rhythmbox</i>
128+// You will be presented with the Rhythmbox application
129+// Click the <i>Rhythmbox</i> icon
130+// Right click the 'music' entry under library and choose 'import file...' for a single song or 'import folder...' for a folder of music
131+// Navigate to the folder or song desired
132+
133+// .
134+// ----- TRANSLATION INSTRUCTIONS -----
135+// Add a series of step-by-step instructions for how to accomplish this trophy.
136+// NOTE: Put each step on a new line
137+// FORMATTING ALLOWED: <i> <strong> <tt>
138+_("ubuntu-desktop/musicinrhythmbox_steps")
139+// ACCOMPLISHMENT: Used Rhythmbox ('tips' field)
140+// .
141+// ORIGINAL TRANSLATION:
142+// You can even buy music through Rhythmbox
143+
144+// .
145+// ----- TRANSLATION INSTRUCTIONS -----
146+// Add tips and best practise for accomplishing this trophy.
147+// NOTE: Put each tip on a new line
148+// FORMATTING ALLOWED: <i> <strong> <tt>
149+_("ubuntu-desktop/musicinrhythmbox_tips")
150+// ACCOMPLISHMENT: Used Rhythmbox ('pitfalls' field)
151+// .
152+// ORIGINAL TRANSLATION:
153+// Using a network share could resultin Rhythmbox reporting that you have missing files if you have not mounted the share prior to launching Rhythmbox.
154+
155+// .
156+// ----- TRANSLATION INSTRUCTIONS -----
157+// Add things the user should not do when working to accomplish this trophy.
158+// NOTE: Put each pitfall on a new line
159+// FORMATTING ALLOWED: <i> <strong> <tt>
160+_("ubuntu-desktop/musicinrhythmbox_pitfalls")
161+// ACCOMPLISHMENT: Used Rhythmbox ('help' field)
162+// .
163+// ORIGINAL TRANSLATION:
164+// Click the <i>Help</i> menu.
165+
166+// .
167+// ----- TRANSLATION INSTRUCTIONS -----
168+// Add related help resources (e.g. IRC channel names).
169+// NOTE: Put each help resource on a new line
170+// FORMATTING ALLOWED: <i> <strong> <tt>
171+_("ubuntu-desktop/musicinrhythmbox_help")
172
173=== added directory 'scripts/ubuntu-desktop/networking'
174=== added file 'scripts/ubuntu-desktop/networking/gwibber-facebook.py'
175--- scripts/ubuntu-desktop/networking/gwibber-facebook.py 1970-01-01 00:00:00 +0000
176+++ scripts/ubuntu-desktop/networking/gwibber-facebook.py 2012-06-12 20:16:17 +0000
177@@ -0,0 +1,34 @@
178+#!/usr/bin/python
179+"""
180+Returns a list of services available as json string
181+"""
182+
183+from dbus.mainloop.glib import DBusGMainLoop
184+import gobject
185+
186+import json, gwibber.lib
187+
188+DBusGMainLoop(set_as_default=True)
189+loop = gobject.MainLoop()
190+
191+gw = gwibber.lib.GwibberPublic()
192+accounts = json.loads(gw.GetAccounts())
193+
194+#go through json array picking up ALL services
195+arrayServices = []
196+i = 0
197+for service in accounts:
198+ arrayServices.append(accounts[i]['service'])
199+ i = i +1
200+
201+#make array contain only unique services
202+tempArray = {}
203+for x in arrayServices: tempArray[x] = 0
204+arrayServices = tempArray.keys()
205+
206+if u'facebook' in arrayServices:
207+ #facebook setup on gwibber'
208+ sys.exit(0)
209+else:
210+ #facebook not setup on gwibber'
211+ sys.exit(1)

Subscribers

People subscribed via source and target branches