#NEWLINE# def doc_patterns_location( pname , bname , release , source , resource_pk ) : #NEWLINE# #INDENT# prelease1 = ProjectRelease . objects . filter ( project__dir_name = pname ) . filter ( release = release ) [ 0 ] #NEWLINE# codebase1 = CodeBase . objects . filter ( project_release = prelease1 ) . filter ( name = bname ) [ 0 ] #NEWLINE# doc_patterns = DocumentationPattern . objects . filter ( main_pattern__pattern__codebase = codebase1 ) . filter ( main_pattern__source = source ) . filter ( main_pattern__resource_object_id = resource_pk ) . filter ( main_pattern__valid = True ) #NEWLINE# for doc_pattern in doc_patterns : #NEWLINE# #INDENT# pcoverage . compute_doc_pattern_location ( resource_pk )