maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

twister 2010-03-29 00:07

Re: witter - a python twitter client
 
thx Rob1n :)

does the search keep refreshing? If not is there a way to keep an active search or is it a feature that is planned? If not I hereby request it :)

dwould 2010-03-29 07:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by twister (Post 586069)
thx Rob1n :)

does the search keep refreshing? If not is there a way to keep an active search or is it a feature that is planned? If not I hereby request it :)

search is currently fairly basic, it simply fetches the last 20 results. it always clears out previous search results when it runs.

at some poont i'll look into how to integrate with the twitter saved search thing. at that time i might look at retaining search hits.

nosa101 2010-03-31 03:21

Re: witter - a python twitter client
 
couldn't use virtual keyboard after retweeting. someone else can check it out though.

and the timestamp is british time

mece 2010-03-31 06:47

Re: witter - a python twitter client
 
Since the last update I feel that witter is a fully useable twitter client for me, and the only one I use while on the move. A couple of minor things bother me though, all of which should be pretty trivial to fix:

A link like this : "mece66: iron sky (http://www.ironsky.net)"
is parsed, but the ( ) are included in the url, so the browser wont open it properly unless you manually remove the parantheses..

some special characters, for example < and > are html encoded and are displayed like
Code:

&lt;
so they need to be decoded when displayed, for example with HTMLparser.unescape IIRC.

the RT function is rendered wrong imo. it's now "RT: @mece66 : blahblah" and it should be "RT @mece66: blahblah"

RT function should work on too long texts, but cut off the end if tweeted while too long. -14 chars left or something like that could be displayed if text is too long.

lastly, and this might not be a bug, just me... How do I use twitpic? I mean where do I enter the text? What happens when I click the "twitpic" button after selecting an image?

br, @mece66

nosa101 2010-03-31 06:58

Re: witter - a python twitter client
 
a reboot fixed my virtual keyboard problem

dwould 2010-03-31 07:11

Re: witter - a python twitter client
 
Quote:

Originally Posted by mece (Post 589230)
Since the last update I feel that witter is a fully useable twitter client for me, and the only one I use while on the move. A couple of minor things bother me though, all of which should be pretty trivial to fix:

A link like this : "mece66: iron sky (http://www.ironsky.net)"
is parsed, but the ( ) are included in the url, so the browser wont open it properly unless you manually remove the parantheses..

i wouldn't expect a url like that to be parsed, snce i look for 'words' that start http however if urls end with random chars then how do i know what is url and what is not? at the moment i assume a url starts with http and ends with a space.
not sure how else to do this.

Quote:

Originally Posted by mece (Post 589230)
some special characters, for example < and > are html encoded and are displayed like
Code:

&lt;
so they need to be decoded when displayed, for example with HTMLparser.unescape IIRC.

the text is rendered using pango, which is like html, it would interpret unescaped < chars as relevant to it's markup. not sure how to make it render those normally.
Quote:

Originally Posted by mece (Post 589230)
the RT function is rendered wrong imo. it's now "RT: @mece66 : blahblah" and it should be "RT @mece66: blahblah"

so the problem is the : after the RT? or also the space after username? again I detect usernames as starting with @ and ending in a space.
Quote:

Originally Posted by mece (Post 589230)
RT function should work on too long texts, but cut off the end if tweeted while too long. -14 chars left or something like that could be displayed if text is too long.

doesn't it do exactly that now? eg it puts whole tweet in place but with -14 indicator?
Quote:

Originally Posted by mece (Post 589230)
lastly, and this might not be a bug, just me... How do I use twitpic? I mean where do I enter the text? What happens when I click the "twitpic" button after selecting an image?

br, @mece66

write you comment in entry field, then go to twitpic menu option select picture. when you hit 'twitpic' picture and comment are sent.
currently if there is no text in the entry field, it doesn't send.
I'm aware this needs a proper pop up warning, or just to post with no comment

mece 2010-03-31 08:36

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 589245)
i wouldn't expect a url like that to be parsed, snce i look for 'words' that start http however if urls end with random chars then how do i know what is url and what is not? at the moment i assume a url starts with http and ends with a space.
not sure how else to do this.

ok fine, it did however parse it for some reason. there was a button with open url (http://asdf) and it opened that exact string in the browser. Weird stuff.

Quote:

Originally Posted by dwould (Post 589245)
the text is rendered using pango, which is like html, it would interpret unescaped < chars as relevant to it's markup. not sure how to make it render those normally.

That one should render properly if markup is used, so the problem is somewhere else. For example double escaping the & character would do this, making the string &amp;lt; instead of &lt;
Perhaps line 799 in account.py version 0.3.1-9?

Quote:

Originally Posted by dwould (Post 589245)
so the problem is the : after the RT? or also the space after username? again I detect usernames as starting with @ and ending in a space.

Well both of them, as they are redundant characters. Perhaps one could parse users starting with @ and ending with space or :
anyway I now just manually edit the thing, but the "RT @user:" method seems to be commonly used. (tweetdeck, echofon and gravity use that method at least)

Quote:

Originally Posted by dwould (Post 589245)
doesn't it do exactly that now? eg it puts whole tweet in place but with -14 indicator?

Oh yes, right you are. Don't know what it didn't work just now. My bad.

Quote:

Originally Posted by dwould (Post 589245)
write you comment in entry field, then go to twitpic menu option select picture. when you hit 'twitpic' picture and comment are sent.
currently if there is no text in the entry field, it doesn't send.
I'm aware this needs a proper pop up warning, or just to post with no comment

Cool, Thanks!

dwould 2010-03-31 08:47

Re: witter - a python twitter client
 
0.3.1-10 includes support for themed icons.
anyone can create a set of icons with the same filenames as the default theme and make them availiable to witter.
basically just create a folder under /opt/witter/icons/
that is the name of your theme, and in that folder place you icons (default icons are all 48x48)
then run witter and your theme will show up in preferences->select theme

themes could be made separately installable just need to put their files in the right place.
see my blog for full list of icon files required.

markusm 2010-03-31 19:59

Re: witter - a python twitter client
 
1 Attachment(s)
I've just made a set of custom icons for Twitter - see the attached screenshot.

Anyone interested in using them just let me know :)

EDIT A bigger screenshot here: http://www.moubail.com/temp/maemo/wi...tter-icons.png

dwould 2010-03-31 20:06

Re: witter - a python twitter client
 
Quote:

Originally Posted by markusm (Post 590341)
I've just made a set of custom icons for Twitter - see the attached screenshot.

Anyone interested in using them just let me know :)

sweet! are you interested in creating a theme package so people can install from the repository?

or can you send me the files to include in the main package?


All times are GMT. The time now is 16:38.

vBulletin® Version 3.8.8