Пример #1
0
	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
Пример #2
0
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)