Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Twitter [and Identi.ca] applet
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
Twitter [and Identi.ca] applet [Bug #268]
Page : 1 2 3 4 5 6
Eduardo Mucelli English 118 matttbe [Read]
09 May 2015 à 10:10

matttbe, Saturday 17 December 2011 à 17:38 | Quote


Subscription date : 24 January 2009
Messages : 12573
Yes, good idea.

About your last merge proposal, I think there is smthg wrong with the code. I'm not using a computer but I think I saw 3 lines about a bzr conflict (we can found: >>>TREE, ===== and <<<MERGE)

Eduardo Mucelli, Saturday 17 December 2011 à 17:56 | Quote


Subscription date : 05 August 2009
Messages : 285
@matttbe, cancel this merge proposal. The next one I fix it. I messed up here the things.

jesuisbenjamin, Monday 19 December 2011 à 21:27 | Quote


Subscription date : 28 October 2009
Messages : 415
well done!

fabounet, Tuesday 20 December 2011 à 13:17 | Quote


Subscription date : 30 November 2007
Messages : 17118
what about a kind of wizard ?
like:
short description -> click next -> browser opens, new dialog waits for the code -> user gets the code -> copy-paste in the dialog -> click next -> new dialog to say it's ok.

Eduardo Mucelli, Thursday 22 December 2011 à 14:14 | Quote


Subscription date : 05 August 2009
Messages : 285
@fab: I think the way you said it is quite similar with the current way, except for the button next (instead of the "Ok") that, I guess, gives a better sensation of sequence for the user. Im going to polish the things to make it similar to a wizard. Thanks for the suggestion.

Eduardo Mucelli, Sunday 08 January 2012 à 03:34 | Quote


Subscription date : 05 August 2009
Messages : 285
Now the initial steps looks like wizard, I think. Added received direct messages.

matttbe, Sunday 08 January 2012 à 07:50 | Quote


Subscription date : 24 January 2009
Messages : 12573
Thank you for this new version!

PS: don't forget to move the '.users' file to ~/.config/cairo-dock directory just like does Gmail applet. (to not include it on our website (if this file is saved into the directory of the applet) or on a theme (if it is saved in the same directory than the .conf file of the applet: ~/.config/cairo-dock/current_theme/plug-ins/(...) )). E.g.:
=== modified file 'Twitter/Twitter'
--- Twitter/Twitter    2012-01-07 20:55:28 +0000
+++ Twitter/Twitter    2012-01-07 18:44:27 +0000
@@ -268,7 +268,8 @@

def __init__(self):
self.user = User()
- self.user_file = '.users'
+ self.path = sys.argv[3][0:-10] # relative path to config file's folder
+ self.user_file = self.path+'../../../.Twitter_users'
self.twitter_auth = TwitterOauth()
self.api = None
self.responding_screen_name, self.responding_authorization, self.responding_pin, self.responding_success, self.responding_tweety, self.responding_initial_informations = range(6)

Eduardo Mucelli, Monday 09 January 2012 à 15:50 | Quote


Subscription date : 05 August 2009
Messages : 285
@matttbe: Yes, I totally forgot that detail Thanks.

fabounet, Monday 09 January 2012 à 17:04 | Quote


Subscription date : 30 November 2007
Messages : 17118
self.path = sys.argv[3][0:-10] # relative path to config file's folder
+ self.user_file = self.path+'../../../.Twitter_users'

I think there is a way to avoid using argv (because that's ugly and could change)
the ../../.. too
if needed, I can add something in the CDApplet class

Added received direct messages

great job, thank you !

about the timeline in the middle-click dialog, did you try to use the "markup" option, to display the author in bold ? that would make things easier to read, but I'm not sure how it would beave with the tags that are already inside the messages ...

Eduardo Mucelli, Tuesday 10 January 2012 à 00:00 | Quote


Subscription date : 05 August 2009
Messages : 285
@fab: I do not use Twitter, so, what are those tags that ppl can put on the tweet? As far as I saw, ppl cannot put it bold, or italic, right? For the .config dir, from the point of view of the system,
os.path.abspath(~/.config/cairo-dock/)
does the job.

@matttbe: as said by Fab, that thing made on Gmail applet is ugly, os.getcwd(), or os.path.abspath('') are better options to get the working directory.

matttbe, Tuesday 10 January 2012 à 01:13 | Quote


Subscription date : 24 January 2009
Messages : 12573
Eduardo Mucelli :
For the .config dir, from the point of view of the system,
os.path.abspath(~/.config/cairo-dock/)
does the job.
No, it's not a good idea because the user can launch the dock with another config directory (-d option). The dock give the path to the config file of the applet, so I think we have to use it to find the right directory.

Or maybe is 'cleaner' with this line?
self.user_file os.path.abspath (os.path.join (self.path'../../..')) + '/.Twitter_users' 

Eduardo Mucelli, Tuesday 10 January 2012 à 13:40 | Quote


Subscription date : 05 August 2009
Messages : 285
@matttbe: What about
os.path.abspath (os.path.join (path, '..','..','..','/.Twitter_users'))
?

matttbe, Tuesday 10 January 2012 à 13:44 | Quote


Subscription date : 24 January 2009
Messages : 12573
yes, maybe

fabounet, Tuesday 10 January 2012 à 14:14 | Quote


Subscription date : 30 November 2007
Messages : 17118
actually I think it should be in the CDApplet class, filled automatically.
so you actually need the folder ~/.config/cairo-dock ?

about the tags, I meant the dialog with all the messages is not very readable, it would maybe be better with the sender in bold font for instance.
you can get it with something like
"<b>"+sender+</b> : "+message

and then use the option to display markup in the dialog.

Eduardo Mucelli, Tuesday 10 January 2012 à 14:30 | Quote


Subscription date : 05 August 2009
Messages : 285
@fab:

"so you actually need the folder ~/.config/cairo-dock ?" Well, as it is something regarding CD config, why not set it into this folder?

Yes, Ive already used markup before (nice feature :)). About the tags, you wrote "but I'm not sure how it would beave with the tags that are already inside the messages", so my question was basically what are those tags that already are inside the messages? I understood what you said meaning some tags that the ppl can put on the tweet text while they are tweeting.

matttbe, Tuesday 10 January 2012 à 14:57 | Quote


Subscription date : 24 January 2009
Messages : 12573
Well, as it is something regarding CD config, why not set it into this folder?
to not include it on a theme

Eduardo Mucelli, Tuesday 10 January 2012 à 15:01 | Quote


Subscription date : 05 August 2009
Messages : 285
matttbe :
Well, as it is something regarding CD config, why not set it into this folder?
to not include it on a theme ;)
Ahhhh

fabounet, Wednesday 11 January 2012 à 13:15 | Quote


Subscription date : 30 November 2007
Messages : 17118
I understood what you said meaning some tags that the ppl can put on the tweet text while they are tweeting.

yep that was my worry, sorry for not being clear
maybe it won't be a problem after all
but I thought that putting in bold font the sender name could help make it readable

Eduardo Mucelli, Wednesday 01 February 2012 à 00:21 | Quote


Subscription date : 05 August 2009
Messages : 285
On the blueprint it is written "be able to reply messages, and retweet tweets", and its flow "show latest messages we received -> dialog with a list of messages and a reply button". Is it possible to be done this way, or anybody has a different suggestion?

fabounet, Wednesday 01 February 2012 à 12:43 | Quote


Subscription date : 30 November 2007
Messages : 17118
currently making complex dialog is not possible with the Python API, so you would have to make your own GTK window, or use a menu.

while that could be nice, I'm not sure we really need to go that far (considering that some good twitter clients already exist, can we compete here ?)
I see the applet more like a notifier (being notified when someone reply our tweets and being able to read the message, being notified when the timeline has a new tweet and being able to read the tweet etc), but that's my own usage, and other people might have other needs

an alternative to being able to reply a tweet, would be being able to connect directly to the internet page of your account (if possible, already logged in).

personnaly, I'd love being able to see my last previous tweets, because we are 2 on this account (Matttbe and me), and I don't want to post something Mattbe would have already posted (or even something I would have posted and forgotten )

Applets | Applets

Subjects Author Language Messages Last message
Twitter [and Identi.ca] applet [Bug #268]
Page : 1 2 3 4 5 6
Eduardo Mucelli English 118 matttbe [Read]
09 May 2015 à 10:10

Post a message

Anti-spam filter 1 (*) times (*) 1 =
            
Did you know ? The Code tag can do syntax colouring based in the languages : [code=php][/code]. It will work with : php,c,c++,c#,sql,bash


Glx-Dock / Cairo-Dock List of forums Applets | Applets Twitter [and Identi.ca] applet Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.