matttbe, Saturday 17 December 2011 à 17:38
|
|
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) |
Subscription date : 05 August 2009
Messages : 285
|
@matttbe, cancel this merge proposal. The next one I fix it. I messed up here the things. |
Subscription date : 28 October 2009
Messages : 415
|
well done!  |
fabounet, Tuesday 20 December 2011 à 13:17
|
|
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. |
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. |
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
|
|
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) |
Subscription date : 05 August 2009
Messages : 285
|
@matttbe: Yes, I totally forgot that detail Thanks. |
fabounet, Monday 09 January 2012 à 17:04
|
|
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
|
|
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'
|
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
|
|
Subscription date : 24 January 2009
Messages : 12573
|
yes, maybe  |
fabounet, Tuesday 10 January 2012 à 14:14
|
|
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. |
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
|
|
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  |
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
|
|
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 |
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
|
|
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 ) |
|