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

Proposed by s.fox
Status: Merged
Merged at revision: 28
Proposed branch: lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-identica
Merge into: lp:ubuntu-desktop-accomplishments
Diff against target: 149 lines (+133/-0)
3 files modified
accomplishments/ubuntu-desktop/en/networking/gwibber-identica.accomplishment (+22/-0)
generated/accomplishments/ubuntu-desktop/gwibber-identica.c (+81/-0)
scripts/ubuntu-desktop/networking/gwibber-identica.py (+30/-0)
To merge this branch: bzr merge lp:~silver-fox/ubuntu-desktop-accomplishments/gwibber-identica
Reviewer Review Type Date Requested Status
Ubuntu Desktop Accomplishments Reviewers Pending
Review via email: mp+110966@code.launchpad.net

Description of the change

added identica 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 file 'accomplishments/ubuntu-desktop/en/networking/gwibber-identica.accomplishment'
2--- accomplishments/ubuntu-desktop/en/networking/gwibber-identica.accomplishment 1970-01-01 00:00:00 +0000
3+++ accomplishments/ubuntu-desktop/en/networking/gwibber-identica.accomplishment 2012-06-19 07:45:23 +0000
4@@ -0,0 +1,22 @@
5+[accomplishment]
6+title=Gwibber - Added Identi.ca
7+description=You have added your identi.ca account to Gwibber
8+category=Networking:Gwibber
9+icon=identica.png
10+author=s.fox <silver-fox@ubuntu.com>
11+collection=ubuntu-desktop
12+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
13+ This accomplishment is awarded when you have authorised your <b>identi.ca</b> account with Gwibber
14+steps=Click the <i>Dash Home</i>
15+ Enter <i>Gwibber</i>
16+ You will be presented with the Gwibber application
17+ Click the <i>Gwibber</i> icon
18+ In the menu navigate to <b>Edit</b> <b>Accounts</b>
19+ Click the + button
20+ Select ident.ca and then click the Add button
21+ Click Authorise
22+ Enter your identi.ca details and click 'Allow'
23+tips=You can add several indenti.ca accounts to gwibber
24+help=https://wiki.ubuntu.com/Gwibber
25+ http://live.gnome.org/Gwibber
26+
27
28=== added file 'accomplishments/ubuntu-desktop/trophyimages/identica.png'
29Binary files accomplishments/ubuntu-desktop/trophyimages/identica.png 1970-01-01 00:00:00 +0000 and accomplishments/ubuntu-desktop/trophyimages/identica.png 2012-06-19 07:45:23 +0000 differ
30=== added file 'generated/accomplishments/ubuntu-desktop/gwibber-identica.c'
31--- generated/accomplishments/ubuntu-desktop/gwibber-identica.c 1970-01-01 00:00:00 +0000
32+++ generated/accomplishments/ubuntu-desktop/gwibber-identica.c 2012-06-19 07:45:23 +0000
33@@ -0,0 +1,81 @@
34+[accomplishment]
35+// ACCOMPLISHMENT: Used Rhythmbox ('title' field)
36+// .
37+// ORIGINAL TRANSLATION:
38+// Used Rhythmbox
39+
40+// .
41+// ----- TRANSLATION INSTRUCTIONS -----
42+// A short description of the accomplishment.
43+// NOTE: Describe this in the past tense as if it has been achieved (e.g. Registered On Launchpad).
44+_("ubuntu-desktop/musicinrhythmbox_title")
45+// ACCOMPLISHMENT: Used Rhythmbox ('description' field)
46+// .
47+// ORIGINAL TRANSLATION:
48+// You have used Rhythmbox.
49+
50+// .
51+// ----- TRANSLATION INSTRUCTIONS -----
52+// Add a descriptive single-line summary of the accomplishment.
53+_("ubuntu-desktop/musicinrhythmbox_description")
54+// ACCOMPLISHMENT: Used Rhythmbox ('summary' field)
55+// .
56+// ORIGINAL TRANSLATION:
57+// 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.
58+// This accomplishment is awarded when you have <b>added music</b> to your Rhythmbox library
59+
60+// .
61+// ----- TRANSLATION INSTRUCTIONS -----
62+// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
63+// NOTE: Break this into paragraphs by putting each paragraph on a new line.
64+// FORMATTING ALLOWED: <i> <strong> <tt>
65+_("ubuntu-desktop/musicinrhythmbox_summary")
66+// ACCOMPLISHMENT: Used Rhythmbox ('steps' field)
67+// .
68+// ORIGINAL TRANSLATION:
69+// Click the <i>Dash Home</i>
70+// Enter <i>Rhythmbox</i>
71+// You will be presented with the Rhythmbox application
72+// Click the <i>Rhythmbox</i> icon
73+// Right click the 'music' entry under library and choose 'import file...' for a single song or 'import folder...' for a folder of music
74+// Navigate to the folder or song desired
75+
76+// .
77+// ----- TRANSLATION INSTRUCTIONS -----
78+// Add a series of step-by-step instructions for how to accomplish this trophy.
79+// NOTE: Put each step on a new line
80+// FORMATTING ALLOWED: <i> <strong> <tt>
81+_("ubuntu-desktop/musicinrhythmbox_steps")
82+// ACCOMPLISHMENT: Used Rhythmbox ('tips' field)
83+// .
84+// ORIGINAL TRANSLATION:
85+// You can even buy music through Rhythmbox
86+
87+// .
88+// ----- TRANSLATION INSTRUCTIONS -----
89+// Add tips and best practise for accomplishing this trophy.
90+// NOTE: Put each tip on a new line
91+// FORMATTING ALLOWED: <i> <strong> <tt>
92+_("ubuntu-desktop/musicinrhythmbox_tips")
93+// ACCOMPLISHMENT: Used Rhythmbox ('pitfalls' field)
94+// .
95+// ORIGINAL TRANSLATION:
96+// Using a network share could resultin Rhythmbox reporting that you have missing files if you have not mounted the share prior to launching Rhythmbox.
97+
98+// .
99+// ----- TRANSLATION INSTRUCTIONS -----
100+// Add things the user should not do when working to accomplish this trophy.
101+// NOTE: Put each pitfall on a new line
102+// FORMATTING ALLOWED: <i> <strong> <tt>
103+_("ubuntu-desktop/musicinrhythmbox_pitfalls")
104+// ACCOMPLISHMENT: Used Rhythmbox ('help' field)
105+// .
106+// ORIGINAL TRANSLATION:
107+// Click the <i>Help</i> menu.
108+
109+// .
110+// ----- TRANSLATION INSTRUCTIONS -----
111+// Add related help resources (e.g. IRC channel names).
112+// NOTE: Put each help resource on a new line
113+// FORMATTING ALLOWED: <i> <strong> <tt>
114+_("ubuntu-desktop/musicinrhythmbox_help")
115
116=== added file 'scripts/ubuntu-desktop/networking/gwibber-identica.py'
117--- scripts/ubuntu-desktop/networking/gwibber-identica.py 1970-01-01 00:00:00 +0000
118+++ scripts/ubuntu-desktop/networking/gwibber-identica.py 2012-06-19 07:45:23 +0000
119@@ -0,0 +1,30 @@
120+#!/usr/bin/python
121+from dbus.mainloop.glib import DBusGMainLoop
122+import gobject
123+import json, gwibber.lib
124+import sys
125+
126+DBusGMainLoop(set_as_default=True)
127+loop = gobject.MainLoop()
128+
129+gw = gwibber.lib.GwibberPublic()
130+accounts = json.loads(gw.GetAccounts())
131+
132+#go through json array picking up ALL services
133+arrayServices = []
134+i = 0
135+for service in accounts:
136+ arrayServices.append(accounts[i]['service'])
137+ i = i +1
138+
139+#make array contain only unique services
140+tempArray = {}
141+for x in arrayServices: tempArray[x] = 0
142+arrayServices = tempArray.keys()
143+
144+if (u'indentica' in arrayServices) or (u'indenti.ca' in arrayServices):
145+ #user has indenti.ca setup on gwibber'
146+ sys.exit(0)
147+else:
148+ #user does not have indenti.ca setup on gwibber'
149+ sys.exit(1)

Subscribers

People subscribed via source and target branches