fixed twitter, thanks spametki

This commit is contained in:
Massimo Di Pierro
2011-12-25 12:35:34 -06:00
parent b2849070c9
commit dc91ed5e61
4 changed files with 45 additions and 4 deletions
+1 -1
View File
@@ -150,7 +150,7 @@
<h3>{{=T("%s Recent Tweets"%TWITTER_HASH)}}</h3>
<div id="tweets">{{=T('loading...')}}</div>
<script>
jQuery(document).ready(function(){jQuery('#tweets').load('{{=URL('twitter')}}')});
jQuery(document).ready(function(){jQuery('#tweets').load('{{=URL('twitter.load')}}');});
</script>
</div>
{{pass}}
@@ -0,0 +1,34 @@
{{response.headers['web2py-response-flash']=response.flash}}
{{
"""
Tweet attributes
'iso_language_code',
'to_user_name',
'to_user_id_str',
'profile_image_url_https',
'from_user_id_str',
'text',
'from_user_name',
'in_reply_to_status_id_str',
'profile_image_url',
'id',
'to_user',
'source',
'in_reply_to_status_id',
'id_str',
'from_user',
'from_user_id',
'to_user_id',
'geo',
'created_at',
'metadata'
"""
}}
{{ for t in tweets: }}
{{ =DIV(H5(t["from_user_name"])) }}
{{ =DIV(t["text"]) }}
{{ =BR() }}
{{ pass }}