示例#1
0
 def delete_controller(self, email):
     if email == "" or len(email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         bm = service.AIService()
         message = bm.entity_remove(email)
         message_display(message)
示例#2
0
 def get_entity_controller(self, email):
     if email == "" or len(email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         bm = service.AIService()
         ai_entity = bm.get_ai_entity(email)
         if ai_entity != None:
             ai_entity_display(ai_entity)
         else:
             message_display("존재하지 않습니다.")
示例#3
0
 def register_controller(self, ai_entity):
     #email valid check - regular express사용  email형식 체크
     if ai_entity.email == "" or len(ai_entity.email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         #business method delegation
         bm = service.AIService()
         message = bm.register(ai_entity)
         #view select
         message_display(message)
示例#4
0
 def file_write(self):
     bm = service.AIService()
     bm.save_list()
示例#5
0
 def file_read(self):
     bm = service.AIService()
     bm.read_list()
示例#6
0
 def get_all_entity_controller(self):
     bm = service.AIService()
     ai_list = bm.get_all_entity()
     ai_list_display(ai_list)
示例#7
0
 def close(self):
     bm = service.AIService()
     bm.close_DB()