greatghoul
2010-08-07 16:15:23 +08:00
注释掉writer.py中以下代码,暂可解决问题, 大约201行开始
# mentions_twitter = memcache.get('mentions_twitter')
# if mentions_twitter is None:
# try:
# result = urlfetch.fetch(TWITTER_API_ROOT + 'search.json?q=' + urllib.quote(q))
# if result.status_code == 200:
# mentions_twitter = simplejson.loads(result.content)
# memcache.add('mentions_twitter', mentions_twitter, 3600)
# except:
# mentions_twitter = None
# if mentions_twitter is not None:
# if len(mentions_twitter['results']) > 0:
# template_values['mentions_twitter'] = mentions_twitter['results']