#NEWLINE# @ fix_deployment #NEWLINE# @ db_api . serialize #NEWLINE# def deployment_list( self , status = None , parent_uuid = None , name = None ) : #NEWLINE# #INDENT# query = self . model_query ( models . Deployment ) . filter_by ( parent_uuid = parent_uuid ) #NEWLINE# if name : #NEWLINE# #INDENT# query = query . filter_by ( name = name ) #NEWLINE# #UNINDENT# if status : #NEWLINE# #INDENT# query = query . filter_by ( status = self ) #NEWLINE# #UNINDENT# return query . all ( )