Beispiel #1
0
 def get_notes(self):
     wnotes_lst = []
     wnotes_loop = 0
     self.notes = input("Notes: ")
     for i in self.notes:
         wnotes_lst.append(i)
         wnotes_loop += 1
         if wnotes_loop == 25:
             break
     wnotes_display = ''.join(wnotes_lst)
     if wnotes_loop == 25:
         self.body[10] = (None, (wnotes_display + '...'))
     else:
         self.body[10] = (None, (wnotes_display))
     self.notes = form.sql_sanitize(self.notes)
     self.notes = form.quote_str(self.notes)
Beispiel #2
0
 def get_name(self):
     temp_name = input("Name: ")
     self.body[0] = (None, ('Name: ' + temp_name))
     self.name = form.sql_sanitize(temp_name)
     self.name = form.quote_str(self.name)
Beispiel #3
0
 def get_lab(self):
     temp_lab = input("Lab: ")
     self.body[3] = (None, ('Lab: ' + temp_lab))
     self.lab = form.sql_sanitize(temp_lab)
     self.lab = form.quote_str(self.lab)
Beispiel #4
0
 def get_origin(self):
     temp_origin = input("Origin: ")
     self.body[1] = (None, ('Origin: ' + temp_origin))
     self.origin = form.sql_sanitize(temp_origin)
     self.origin = form.quote_str(self.origin)
Beispiel #5
0
 def get_pid(self):
     temp_pid = input("Product ID: ")
     self.body[2] = (None, ('Product ID: ' + temp_pid))
     self.prod_id = form.sql_sanitize(temp_pid)
     self.prod_id = form.quote_str(self.prod_id)