예제 #1
0
파일: site.py 프로젝트: iselu/collipa
 def get(self):
     page = self.get_int('page', 1)
     from_id = self.get_int('from_id', 0)
     tweets = Tweet.get_timeline(page=page, from_id=from_id, user_id=self.current_user.id)
     return self.render("site/timeline.html",
                        tweets=tweets,
                        cate='me',
                        page=page)
예제 #2
0
 def get(self):
     page = self.get_int('page', 1)
     from_id = self.get_int('from_id', 0)
     tweets = Tweet.get_timeline(page=page, from_id=from_id)
     return self.render("site/timeline.html",
                        tweets=tweets,
                        cate='public',
                        page=page)
예제 #3
0
 def get(self):
     page = self.get_int('page', 1)
     from_id = self.get_int('from_id', 0)
     tweets = Tweet.get_timeline(page=page, from_id=from_id)
     return self.send_success_json(object_list=[tweet.to_dict() for tweet in tweets])
예제 #4
0
파일: tweet.py 프로젝트: zky001/collipa
 def get(self):
     page = self.get_int('page', 1)
     from_id = self.get_int('from_id', 0)
     tweets = Tweet.get_timeline(page=page, from_id=from_id)
     return self.send_success_json(
         object_list=[tweet.to_dict() for tweet in tweets])