Example #1
0
 def do(self, operations, input_str, flow_name):
     if input_str in operations :            
         Flow.create_flow(operations[input_str], StringUtils.camelize(operations[input_str])).step_one()
     elif (input_str == "9"):
       exit()          
     else:
         print("Wrong Selection: \n")
         Flow.create_flow(flow_name, StringUtils.camelize(flow_name)).menu()
Example #2
0
 def do(self, operations, input_str, flow_name):
     if input_str in operations:
         Flow.create_flow(operations[input_str],
                          StringUtils.camelize(
                              operations[input_str])).step_one()
     elif (input_str == "9"):
         exit()
     else:
         print("Wrong Selection: \n")
         Flow.create_flow(flow_name, StringUtils.camelize(flow_name)).menu()
 def run(self):
     msisdn = input("Enter your MSISDN: \n #123# for Banking \n #234# for Calculator \n") 
     if msisdn in self.flows:            
         Flow.create_flow(self.flows[msisdn], StringUtils.camelize(self.flows[msisdn])).menu()         
     else:
         self.run()