[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-07-08 Thread Jacinto Parga
Thanks for your answer, 

no, I have already set* r=[]*

The error message is literaly:  *Unable to download because:** **'results'*

El viernes, 21 de junio de 2013 10:47:53 UTC+2, 黄祥 escribió:

 did you mean you got an error : 
 Unable to download because:
 local variable 'r' referenced before assignment

 best regards

 On Friday, June 21, 2013 3:39:53 PM UTC+7, Jacinto Parga wrote:

 I have got a similar error:

 Unable to download because:
 'results'

 And the tweets have been no longer loaded for several days.

 I have tried your solutions but they didn't work

 If you can help...

 El viernes, 31 de mayo de 2013 05:39:10 UTC+2, 黄祥 escribió:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want 
 to use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-07-08 Thread Alan Etkin


 Thanks for your answer, 

 no, I have already set* r=[]*

 The error message is literaly:  *Unable to download because:** **
 'results'* 


Probably your version of admin (and web2py) has a twitter loader that broke 
because of the new twitter client authentication. You could solve the 
problem by upgrading.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-07-08 Thread Jacinto Parga
Yes !! it is solved, thankyou!!!

El lunes, 8 de julio de 2013 19:08:26 UTC+2, Alan Etkin escribió:

 Thanks for your answer, 

 no, I have already set* r=[]*

 The error message is literaly:  *Unable to download because:** **
 'results'* 


 Probably your version of admin (and web2py) has a twitter loader that 
 broke because of the new twitter client authentication. You could solve the 
 problem by upgrading.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-21 Thread Jacinto Parga
I have got a similar error:

Unable to download because:
'results'

And the tweets have been no longer loaded for several days.

I have tried your solutions but they didn't work

If you can help...

El viernes, 31 de mayo de 2013 05:39:10 UTC+2, 黄祥 escribió:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want to 
 use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-21 Thread 黄祥
did you mean you got an error : 
Unable to download because:
local variable 'r' referenced before assignment

best regards

On Friday, June 21, 2013 3:39:53 PM UTC+7, Jacinto Parga wrote:

 I have got a similar error:

 Unable to download because:
 'results'

 And the tweets have been no longer loaded for several days.

 I have tried your solutions but they didn't work

 If you can help...

 El viernes, 31 de mayo de 2013 05:39:10 UTC+2, 黄祥 escribió:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want to 
 use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-06-01 Thread 黄祥
thank you so much for your fast response massimo.
btw, i think the code is not error, if i'm not wrong when i tested it using 
my own twitter account, if you have posted tweet more than 2 days then the 
posted is not appear.

best regards

On Friday, May 31, 2013 9:15:59 PM UTC+7, Massimo Di Pierro wrote:

 I think it is better this way. That should be for security updates and new 
 releases. I will do a better job at posting more news. If something is 
 important I can re-tweet. 

 It is not there for a social purpose. Yet this is open for discussion.

 On Friday, 31 May 2013 08:44:29 UTC-5, Paolo valleri wrote:

 Hi, now it seems to work but it is different than the former 
 implementation, namely the current shows only tweets posted by the user 
 web2py, however the most recent one is more than two months old. As is I 
 don't see this so useful, actually It is a matter of communication and 
 which information we want to spread from the admin page.

 Paolo

 On Friday, May 31, 2013 3:19:27 PM UTC+2, Massimo Di Pierro wrote:

 Done. in trunk.

 On Thursday, 30 May 2013 22:39:10 UTC-5, 黄祥 wrote:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want 
 to use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-05-31 Thread Massimo Di Pierro
Done. in trunk.

On Thursday, 30 May 2013 22:39:10 UTC-5, 黄祥 wrote:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want to 
 use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-05-31 Thread Paolo valleri
Hi, now it seems to work but it is different than the former 
implementation, namely the current shows only tweets posted by the user 
web2py, however the most recent one is more than two months old. As is I 
don't see this so useful, actually It is a matter of communication and 
which information we want to spread from the admin page.

Paolo

On Friday, May 31, 2013 3:19:27 PM UTC+2, Massimo Di Pierro wrote:

 Done. in trunk.

 On Thursday, 30 May 2013 22:39:10 UTC-5, 黄祥 wrote:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want to 
 use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py 2.4.7 admin Recent Tweets not loaded

2013-05-31 Thread Massimo Di Pierro
I think it is better this way. That should be for security updates and new 
releases. I will do a better job at posting more news. If something is 
important I can re-tweet. 

It is not there for a social purpose. Yet this is open for discussion.

On Friday, 31 May 2013 08:44:29 UTC-5, Paolo valleri wrote:

 Hi, now it seems to work but it is different than the former 
 implementation, namely the current shows only tweets posted by the user 
 web2py, however the most recent one is more than two months old. As is I 
 don't see this so useful, actually It is a matter of communication and 
 which information we want to spread from the admin page.

 Paolo

 On Friday, May 31, 2013 3:19:27 PM UTC+2, Massimo Di Pierro wrote:

 Done. in trunk.

 On Thursday, 30 May 2013 22:39:10 UTC-5, 黄祥 wrote:

 hi,

 just want to report that web2py 2.4.7 admin Recent Tweets not loaded.
 error:
 Unable to download because:
 local variable 'r' referenced before assignment

 applications/admin/controllers/default.py
 def twitter():
 session.forget()
 session._unlock(response)
 import gluon.tools
 import gluon.contrib.simplejson as sj
 try:
 if TWITTER_HASH:
 page = urllib.urlopen(
 http://search.twitter.com/search.json?q=%%40%s; % TWITTER_HASH).read()
 data = sj.loads(page, encoding=utf-8)['results']
 d = dict()
 *r = []*
 for e in data:
 d[e[id]] = e
 r = reversed(sorted(d))
 return dict(tweets=[d[k] for k in r])
 else:
 return 'disabled'
 except Exception, e:
 return DIV(T('Unable to download because:'), BR(), str(e))

 ref:
 https://groups.google.com/forum/?fromgroups#!topic/web2py/rtUZeamzXp8

 error is gone and also not showing any tweets

 if i'm not wrong twitter api had already deprecated, imho, if you want 
 to use twitter tweets please use the embeded one provide by twitter 
 (timelines, tweets, etc)

 ref:
 https://dev.twitter.com/

 please correct and forgive me if i'm wrong

 best regards



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.