コード例 #1
0
ファイル: handlers.py プロジェクト: andreyvit/mockko
 def get(self, user, account, **kwargs):
     images = []
     for group in ImageGroup.all().filter("owner", None).order("priority").fetch(1000):
         images += [format_group(group, False)]
     for group in account.imagegroup_set.order("priority"):
         images += [format_group(group, True)]
     return render_json_response(self, images)
コード例 #2
0
ファイル: handlers.py プロジェクト: andreyvit/mockko
 def get(self, user, account, **kwargs):
     images = []
     for group in ImageGroup.all().filter(
             'owner', None).order('priority').fetch(1000):
         images += [format_group(group, False)]
     for group in account.imagegroup_set.order('priority'):
         images += [format_group(group, True)]
     return render_json_response(self, images)