if timerangetype == "month": sdate = raw_input("please enter start month in YYYY-MM-DD format: ") edate = raw_input("please enter end month in YYYY-MM-DD format: ") if timerangetype == "year": sdate = raw_input("please enter start month in YYYY-MM-DD format: ") edate = raw_input("please enter end month in YYYY-MM-DD format: ") self.timerange = (timerangetype,sdate,edate) def getparams(self): print "please enter the dimensions you want.You have the following options: " for item in self.mart.dimensions.keys(): print item self.params = self.mart.dimensions.keys() #mygreeter = greeter() #unique_id,mart,metric,aggregation,timeseries,timerange,params = mygreeter.main() unique_id,mart,metric,aggregation,timeseries,timerange,params = 'Abhishek','flight_paymentdetails','Gross Margin','SUM','bookingdate',('date','2012-05-14','2012-05-14'),['airline','source','destination','sector','city','status','bookingflag','typeoftravel'] mydashboard = Dashboard(unique_id,mart,metric,aggregation,timeseries,timerange,params) def ask(): choice = raw_input("Press 0 to continue and 1 to exit : ") if choice == '1' : mydashboard.exit() else : mydashboard.interact() ask() mydashboard.process() mydashboard.render() ask()