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
=== added directory 'accomplishments/ubuntu-desktop/bn/networking'
=== added file 'accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment'
--- accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-desktop/bn/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
@@ -0,0 +1,22 @@
1[accomplishment]
2title = Gwibber - Added Twitter
3description = You have added your twitter account to Gwibber
4category = Networking
5icon = twitter.png
6author = s.fox <silver-fox@ubuntu.com>
7collection = ubuntu-desktop
8summary = 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
9 This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
10steps = Click the <i>Dash Home</i>
11 Enter <i>Gwibber</i>
12 You will be presented with the Gwibber application
13 Click the <i>Gwibber</i> icon
14 In the menu navigate to <b>Edit</b> <b>Accounts</b>
15 Click the + button
16 Select twitter and then click the Add button
17 Click Authorise
18 Enter your twitter details and click 'Authorize App'
19tips = You can add several twitter accounts to gwibber
20help = https://wiki.ubuntu.com/Gwibber
21 http://live.gnome.org/Gwibber
22
023
=== added directory 'accomplishments/ubuntu-desktop/en/networking'
=== added file 'accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment'
--- accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-desktop/en/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
@@ -0,0 +1,22 @@
1[accomplishment]
2title=Gwibber - Added Twitter
3description=You have added your twitter account to Gwibber
4category=Networking:Gwibber
5icon=twitter.png
6author=s.fox <silver-fox@ubuntu.com>
7collection=ubuntu-desktop
8summary=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
9 This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
10steps=Click the <i>Dash Home</i>
11 Enter <i>Gwibber</i>
12 You will be presented with the Gwibber application
13 Click the <i>Gwibber</i> icon
14 In the menu navigate to <b>Edit</b> <b>Accounts</b>
15 Click the + button
16 Select twitter and then click the Add button
17 Click Authorise
18 Enter your twitter details and click 'Authorize App'
19tips=You can add several twitter accounts to gwibber
20help=https://wiki.ubuntu.com/Gwibber
21 http://live.gnome.org/Gwibber
22
023
=== added directory 'accomplishments/ubuntu-desktop/pl/networking'
=== added file 'accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment'
--- accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-desktop/pl/networking/gwibber-twitter.accomplishment 2012-06-12 19:55:22 +0000
@@ -0,0 +1,22 @@
1[accomplishment]
2title = Gwibber - Added Twitter
3description = You have added your twitter account to Gwibber
4category = Networking
5icon = twitter.png
6author = s.fox <silver-fox@ubuntu.com>
7collection = ubuntu-desktop
8summary = 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
9 This accomplishment is awarded when you have authorised your<b>twitter</b> account with gwibber
10steps = Click the <i>Dash Home</i>
11 Enter <i>Gwibber</i>
12 You will be presented with the Gwibber application
13 Click the <i>Gwibber</i> icon
14 In the menu navigate to <b>Edit</b> <b>Accounts</b>
15 Click the + button
16 Select twitter and then click the Add button
17 Click Authorise
18 Enter your twitter details and click 'Authorize App'
19tips = You can add several twitter accounts to gwibber
20help = https://wiki.ubuntu.com/Gwibber
21 http://live.gnome.org/Gwibber
22
023
=== added file 'accomplishments/ubuntu-desktop/trophyimages/twitter.png'
1Binary 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 differ24Binary 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
=== added file 'generated/accomplishments/ubuntu-desktop/gwibber-twitter.c'
--- generated/accomplishments/ubuntu-desktop/gwibber-twitter.c 1970-01-01 00:00:00 +0000
+++ generated/accomplishments/ubuntu-desktop/gwibber-twitter.c 2012-06-12 19:55:22 +0000
@@ -0,0 +1,80 @@
1[accomplishment]
2// ACCOMPLISHMENT: Edited Accomplishment Identification ('title' field)
3// .
4// ORIGINAL TRANSLATION:
5// Edited Accomplishment Identification
6
7// .
8// ----- TRANSLATION INSTRUCTIONS -----
9// A short description of the accomplishment.
10// NOTE: Describe this in the past tense as if it has been achieved (e.g. Registered On Launchpad).
11_("ubuntu-desktop/accomplishments-edit-credentials_title")
12// ACCOMPLISHMENT: Edited Accomplishment Identification ('description' field)
13// .
14// ORIGINAL TRANSLATION:
15// You have edited your identity settings.
16
17// .
18// ----- TRANSLATION INSTRUCTIONS -----
19// Add a descriptive single-line summary of the accomplishment.
20_("ubuntu-desktop/accomplishments-edit-credentials_description")
21// ACCOMPLISHMENT: Edited Accomplishment Identification ('summary' field)
22// .
23// ORIGINAL TRANSLATION:
24// 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.
25// You may however need to change the details you provided, for example, such as if have changed your email address or other details.
26// This accomplishment is awarded when you have edited these credentials.
27
28// .
29// ----- TRANSLATION INSTRUCTIONS -----
30// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
31// NOTE: Break this into paragraphs by putting each paragraph on a new line.
32// FORMATTING ALLOWED: <i> <strong> <tt>
33_("ubuntu-desktop/accomplishments-edit-credentials_summary")
34// ACCOMPLISHMENT: Edited Accomplishment Identification ('steps' field)
35// .
36// ORIGINAL TRANSLATION:
37// Click the <i>Edit</i> menu in this application.
38// Click the <i>Identification...</i> option.
39// You will be presented with all of the different identity details that are required.
40// Edit the boxes and then click the <i>OK</i> button to save them.
41
42// .
43// ----- TRANSLATION INSTRUCTIONS -----
44// Add a series of step-by-step instructions for how to accomplish this trophy.
45// NOTE: Put each step on a new line
46// FORMATTING ALLOWED: <i> <strong> <tt>
47_("ubuntu-desktop/accomplishments-edit-credentials_steps")
48// ACCOMPLISHMENT: Edited Accomplishment Identification ('tips' field)
49// .
50// ORIGINAL TRANSLATION:
51// Always ensure that you enter the correct details.
52
53// .
54// ----- TRANSLATION INSTRUCTIONS -----
55// Add tips and best practise for accomplishing this trophy.
56// NOTE: Put each tip on a new line
57// FORMATTING ALLOWED: <i> <strong> <tt>
58_("ubuntu-desktop/accomplishments-edit-credentials_tips")
59// ACCOMPLISHMENT: Edited Accomplishment Identification ('pitfalls' field)
60// .
61// ORIGINAL TRANSLATION:
62// 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!
63
64// .
65// ----- TRANSLATION INSTRUCTIONS -----
66// Add things the user should not do when working to accomplish this trophy.
67// NOTE: Put each pitfall on a new line
68// FORMATTING ALLOWED: <i> <strong> <tt>
69_("ubuntu-desktop/accomplishments-edit-credentials_pitfalls")
70// ACCOMPLISHMENT: Edited Accomplishment Identification ('help' field)
71// .
72// ORIGINAL TRANSLATION:
73// Click the <i>Help</i> menu.
74
75// .
76// ----- TRANSLATION INSTRUCTIONS -----
77// Add related help resources (e.g. IRC channel names).
78// NOTE: Put each help resource on a new line
79// FORMATTING ALLOWED: <i> <strong> <tt>
80_("ubuntu-desktop/accomplishments-edit-credentials_help")
081
=== added directory 'scripts/ubuntu-desktop/networking'
=== added file 'scripts/ubuntu-desktop/networking/gwibber-twitter.py'
--- scripts/ubuntu-desktop/networking/gwibber-twitter.py 1970-01-01 00:00:00 +0000
+++ scripts/ubuntu-desktop/networking/gwibber-twitter.py 2012-06-12 19:55:22 +0000
@@ -0,0 +1,30 @@
1#!/usr/bin/python
2
3from dbus.mainloop.glib import DBusGMainLoop
4import gobject
5import json, gwibber.lib
6
7DBusGMainLoop(set_as_default=True)
8loop = gobject.MainLoop()
9
10gw = gwibber.lib.GwibberPublic()
11accounts = json.loads(gw.GetAccounts())
12
13#go through json array picking up ALL services
14arrayServices = []
15i = 0
16for service in accounts:
17 arrayServices.append(accounts[i]['service'])
18 i = i +1
19
20#make array contain only unique services
21tempArray = {}
22for x in arrayServices: tempArray[x] = 0
23arrayServices = tempArray.keys()
24
25if u'twitter' in arrayServices:
26 #user twitter setup on gwibber
27 sys.exit(0)
28else:
29 #user does not have twitter setup on gwibber
30 sys.exit(1)

Subscribers

People subscribed via source and target branches