#NEWLINE# def _applicable_fixture( self , fixture , user_id ) : #NEWLINE# #INDENT# 'Determine if this fixture is applicable for given user id.' #NEWLINE# is_public = fixture [ 'is_public' ] #NEWLINE# try : #NEWLINE# #INDENT# uid = is_public [ 'properties' ] [ 'user_id' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# uid = None #NEWLINE# #UNINDENT# return ( ( uid == user_id ) or is_public )