#NEWLINE# @ classmethod #NEWLINE# @ gen . coroutine #NEWLINE# def QueryUserAccounting( cls , client , user_id ) : #NEWLINE# #INDENT# "Query a single user's accounting entries. Returns an array of [owned_by, shared_by, visible_to] accounting\n    entries, any of which may be None (eg: if data was not properly populated).\n    " #NEWLINE# user_hash = ( '%s:%d' % ( Accounting . USER_SIZE , user_id ) ) #NEWLINE# result = ( yield [ gen . Task ( Accounting . Query , client , user_hash , Accounting . OWNED_BY , None , must_exist = False ) , gen . Task ( Accounting . Query , client , result , Accounting . SHARED_BY , None , must_exist = False ) , gen . Task ( Accounting . Query , client , user_hash , Accounting . VISIBLE_TO , None , must_exist = False ) ] ) #NEWLINE# raise gen . Return ( result )