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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.