Exemplo n.º 1
0
 def add_talk_by_prompt(self):
     print "------------------------------ Adding a Talk -------------------------------\n"
     presentation = Presentation("")
     
     presentation.title = raw_input("Type the presentation title: ").strip()
     
     while(not len(presentation.title) > 0):
         presentation.title = raw_input("Please, type the presentation title: ").strip() 
     
     presentation.speaker = raw_input("Type the presentation speaker: ").strip()
     
     while(not len(presentation.speaker) > 0):
         presentation.speaker = raw_input("Please, type the presentation speaker: ").strip()
     
     presentation.description = raw_input("Type the presentation description or press <ENTER> to pass: "******"Type the speaker level or press <ENTER> to pass: "******"Type the event that held the presentation or press <ENTER> to pass: "******"Type the room where the presentation will be performed or press <ENTER> to pass: "******"Type the presentation time (format: dd/MM/yyyy HH:mm) or press <ENTER> to pass: "******"Wrong date format, please type the presentation time (format: dd/MM/yyyy HH:mm) or press <ENTER> to pass: "******"###################### Talk Added ############################"
     else:
         print "############### Error: Talk Already Exists ###################"