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)

dwould 2010-04-10 10:53

Re: witter - a python twitter client
 
Quote:

Originally Posted by nosa101 (Post 603723)
The Twitter for blackberry app claims in app caching improves performance

well witter does do caching. it caches the avatars in memory. at the moment it uses the cache upto 10 times, on the 11 tweet seen from a user their avatar is re-downloaded.
i could extend this to make it use the cache more and only redownload say every 50th time.
i can't think of anything else that can be meaningfully cached for any performance benefit.

cy8aer 2010-05-08 10:21

Re: witter - a python twitter client
 
hm, I tried the new 0.3.2-0 today but unfortunately...
... there is the time problem again:


time data did not match format: data=Sat May 08 11:13:59 +0200 2010 fmt=%a %b %d %H:%M:%S +0000 %Y
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 41, in _start
File "/opt/witter/witter.py", line 692, in getTweetsWrapper
self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 217, in getTweets
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 1023, in format_timestamp
AttributeError: 'str' object has no attribute 'strftime'



This happens with an "other" (status.net) account, I cannot check my twitter account because the program does not change the active account after the error above :( - how can I change the account with the configuration files? How does the string look like with twitter? Maybe it can be useful to open a bug for the status.net developers to send the correct string to a client...

dwould 2010-05-09 12:08

Re: witter - a python twitter client
 
Quote:

Originally Posted by cy8aer (Post 649127)
hm, I tried the new 0.3.2-0 today but unfortunately...
... there is the time problem again:


time data did not match format: data=Sat May 08 11:13:59 +0200 2010 fmt=%a %b %d %H:%M:%S +0000 %Y
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 41, in _start
File "/opt/witter/witter.py", line 692, in getTweetsWrapper
self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 217, in getTweets
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 1023, in format_timestamp
AttributeError: 'str' object has no attribute 'strftime'



This happens with an "other" (status.net) account, I cannot check my twitter account because the program does not change the active account after the error above :( - how can I change the account with the configuration files? How does the string look like with twitter? Maybe it can be useful to open a bug for the status.net developers to send the correct string to a client...

ok, well 0.3.2-1 just went to extras-devel and should fix most of what I broke, but possibly not this problem. which looks like yet *another* format for the date string. if this is not really twitter, then it's possible that status.net just has a slightly different format for it's timestamps etc.
I'll try to remember to add a fix for it next time I'm making updates.

dwould 2010-05-09 12:21

Re: witter - a python twitter client
 
On a slightly different note, I'm hoping to push 0.3.2-n up to extras, It contians a few nice fixes that I think are worth it for people, and particularly the theme support to allow for nicer icons that the rubbish ones I drew originally.
That said I would like to push it with a couple more icon sets. So if any artistic type would like to create an icon set to be in the next extras version of witter, that would be much appreciated.
At the moment we have my rubbish originals, and monochrome which is much more stylish. So any other ideas that would provide some different styles to pick from would be cool

evil_m0nkey 2010-05-09 14:18

Re: witter - a python twitter client
 
I will try to create an icon set. No promises though.

also, my witter says 2 tweets recieved but there's no change in my timeline.

danke

ofels 2010-05-09 20:05

Re: witter - a python twitter client
 
Quote:

Originally Posted by cy8aer (Post 649127)
hm, I tried the new 0.3.2-0 today but unfortunately...
... there is the time problem again:

Same here.
Though I have not tried 0.3.2n yet.

dwould 2010-05-09 20:14

Re: witter - a python twitter client
 
Thanks for the offers of icons.
I've updated to 0.3.2-2 to try to fix the persistent timestamp problems.
If lots of tweets start showing up as current when they should be old, then there is still a problem, but I'm trying to stop it being something that stops things working.

netAdept 2010-05-11 17:04

Re: witter - a python twitter client
 
Has anyone else tried the PR1.2L ctrl-shift-r trick with Witter yet?

It works almost perfectly, scaling the icons across the top and bottom bars in a usable fashion. Unfortunately though the message text is truncated on the right hand side; presumably this is a fixed width rather than snapping to the right hand side.

I'd show you a picture but the screen rotates back to landscape when I open the keyboard :)

@dwould - thanks for all your effort making a great app. It's getting better with every iteration.

dwould 2010-05-11 18:15

Re: witter - a python twitter client
 
Quote:

Originally Posted by netAdept (Post 653836)
Has anyone else tried the PR1.2L ctrl-shift-r trick with Witter yet?

It works almost perfectly, scaling the icons across the top and bottom bars in a usable fashion. Unfortunately though the message text is truncated on the right hand side; presumably this is a fixed width rather than snapping to the right hand side.

I'd show you a picture but the screen rotates back to landscape when I open the keyboard :)

@dwould - thanks for all your effort making a great app. It's getting better with every iteration.

huh, if you happen to know how to query the current screen width or something that would tell witter that it's in portrait, then I guess I could set the text width appropriately.

I'll wait for a real PR 1.2 release to try it myself.

netAdept 2010-05-11 19:16

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 653947)
if you happen to know how to query the current screen width or something that would tell witter that it's in portrait, then I guess I could set the text width appropriately.

Sorry no idea. I don't suppose Python has anything like a CSS container where you can just say 'use 100% width' and let the renderer sort out the width for you?

Quote:

Originally Posted by dwould (Post 653947)
I'll wait for a real PR 1.2 release to try it myself.

Probably best. The ctrl-shift-r is clearly an unfinished test feature.


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

vBulletin® Version 3.8.8