Exemplo n.º 1
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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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)