def quotas(): ''' This gets returned after a query is entered - it should do the following... - set the search_string from the session data - use the isilon_find_quotas to return a list of dictionaries with all quotas - IF there are quotas it should create a new form using the quotas_radio_return function -- new form will have a list of radio buttons (create :return: ''' tool = Isilon_Tools() search_string = session['search'] all_quotas = tool.isilon_find_quotas(search_string) if all_quotas == "NA": return render_template('quota_not_found.html') else: myform = quotas_radio_return(all_quotas) itemid = myform.itemid.data if myform.is_submitted(): session['selected'] = myform.itemid.data return redirect(url_for('cost')) else: return render_template('quotas.html',form=myform, itemid=itemid)