예제 #1
0
파일: multi.py 프로젝트: AHAMED750/reddit
 def GET_my_multis(self, expand_srs):
     """Fetch a list of multis belonging to the current user."""
     multis = LabeledMulti.by_owner(c.user)
     return self._format_multi_list(multis, c.user, expand_srs)
예제 #2
0
파일: multi.py 프로젝트: ani625/reddit
 def GET_my_multis(self):
     """Fetch a list of multis belonging to the current user."""
     multis = LabeledMulti.by_owner(c.user)
     wrapped = wrap_things(*multis)
     resp = [w.render() for w in wrapped]
     return self.api_wrapper(resp)
예제 #3
0
파일: multi.py 프로젝트: AHAMED750/reddit
 def GET_list_multis(self, user, expand_srs):
     """Fetch a list of public multis belonging to `username`"""
     multis = LabeledMulti.by_owner(user)
     return self._format_multi_list(multis, c.user, expand_srs)
예제 #4
0
 def GET_my_multis(self, expand_srs):
     """Fetch a list of multis belonging to the current user."""
     multis = LabeledMulti.by_owner(c.user)
     return self._format_multi_list(multis, c.user, expand_srs)
예제 #5
0
 def GET_list_multis(self, user, expand_srs):
     """Fetch a list of public multis belonging to `username`"""
     multis = LabeledMulti.by_owner(user)
     return self._format_multi_list(multis, c.user, expand_srs)
예제 #6
0
파일: multi.py 프로젝트: znanl/reddit
 def GET_my_multis(self, expand_srs):
     """Fetch a list of multis belonging to the current user."""
     multis = LabeledMulti.by_owner(c.user)
     templ = LabeledMultiJsonTemplate(expand_srs)
     resp = [templ.render(multi).finalize() for multi in multis]
     return self.api_wrapper(resp)
예제 #7
0
파일: multi.py 프로젝트: unixcrh/reddit
 def GET_my_multis(self):
     """Fetch a list of multis belonging to the current user."""
     multis = LabeledMulti.by_owner(c.user)
     wrapped = wrap_things(*multis)
     resp = [w.render() for w in wrapped]
     return self.api_wrapper(resp)