return list def getsummary(selfid)query '''select summary from defects where id '% ''id summary self _dbselect(queryfor row in summaryreturn row[ def _dbselect(selfquery)connection sqlite connect('tms'cursorobj connection cursor(results cursorobj execute(queryconnection commit(cursorobj close(return results class defectviewdef summary(selfsummarydefectid)print "###defect summary for defect% ####\ % (defectid,summarydef defectlist(selflistcategory)print "###defect list for % ####\ncategory for defect in listprint defect class controllerdef __init__(self)pass def getdefectsummary(selfdefectid)model defectmodel(view defectview(summary_data model getsummary(defectidreturn view summary(summary_datadefectiddef getdefectlist(selfcomponent)model defectmodel(view defectview(defectlist_data model getdefectlist(componentreturn view defectlist(defectlist_datacomponentpython code for user import mvc controller mvc controller(displaying summary for defect id www testingperspective com