#NEWLINE# def get_cloudcare_form_url( domain , app_build_id = None , module_id = None , form_id = None , case_id = None ) : #NEWLINE# #INDENT# url_root = reverse ( 'cloudcare_main' , args = [ domain , '' ] ) #NEWLINE# url = url_root #NEWLINE# if ( app_build_id != None ) : #NEWLINE# #INDENT# url = ( ( url + 'view/' ) + str ( app_build_id ) ) #NEWLINE# if ( module_id != None ) : #NEWLINE# #INDENT# url = ( ( url + '/' ) + str ( module_id ) ) #NEWLINE# if ( form_id != None ) : #NEWLINE# #INDENT# url = ( ( url + '/' ) + str ( form_id ) ) #NEWLINE# if ( case_id != None ) : #NEWLINE# #INDENT# url = ( ( url + '/case/' ) + str ( case_id ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return url