#NEWLINE# @ classmethod #NEWLINE# @ jsonify #NEWLINE# def overview( cls , slug ) : #NEWLINE# #INDENT# game = get_game_by_slug ( slug ) #NEWLINE# if ( not game ) : #NEWLINE# #INDENT# response . status_int = 404 #NEWLINE# return { #NEWLINE# #INDENT# 'ok' : False , #NEWLINE# 'msg' : ( 'Game does not exist: %s' % slug ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# abs_static_path = join ( cls . datapath , slug ) #NEWLINE# users = ( listdir ( abs_static_path ) if exists ( abs_static_path ) else [ ] ) #NEWLINE# return { #NEWLINE# #INDENT# 'ok' : True , #NEWLINE# 'data' : { #NEWLINE# #INDENT# 'title' : slug . title , #NEWLINE# 'slug' : game . slug , #NEWLINE# 'userdata' : exists ( join ( cls . datapath , slug ) ) , #NEWLINE# 'users' : users , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }