def fm_get_feeds(cls): fm = FeedManager() posts = Post.objects.all().order_by('-pubtime') timestamp = posts[0].pubtime type_list = [0, 1, 2, 3] feeds = fm.get_feeds(6, type_list) print feeds feeds = fm.get_feeds(6, type_list, timestamp) print feeds
def thread_feeds(sender_id, thread_id, post_id, ftype, at_users): fm = FeedManager() return fm.thread_feeds(sender_id, thread_id, post_id, ftype, at_users)