def new_account_create(self, subview):
     test = Account()
     test.setEmail(subview.e1.get() + "@sep.se")
     exist = self.model.account_db.get(test)
     if exist is False:
         subview.form.create_widgets()
     else:
         subview.form.already_exist()
Example #2
0
 def new_account_create(self, subview):
     test = Account()
     test.setEmail(subview.e1.get() + "@sep.se")
     exist = self.model.account_db.get(test)
     if exist is False:
         subview.form.create_widgets()
     else:
         subview.form.already_exist()
 def config_save(self, subview):
     data = subview.get_all()
     new = Account()
     new.setName(data[0])
     new.setEmail(data[1])
     new.setPassword(data[2])
     new.setAccountTeam(data[3])
     new.setAccountType(data[4])
     new.setDepartment(data[5])
     new.setComment(data[6])
     self.model.account_db.update(new)
 def new_account_submit(self, subview):
     data = subview.get_all()
     data[1] += "@sep.se"
     data[3] = self.str_to_enum(data[3]).value
     data[4] = self.str_to_enum(data[4]).value
     new = Account()
     new.setName(data[0])
     new.setEmail(data[1])
     new.setPassword(data[2])
     new.setAccountTeam(data[3])
     new.setAccountType(data[4])
     new.setDepartment(data[5])
     new.setComment(data[6])
     self.model.account_db.add(new)
     self.clear_frame(subview)
Example #5
0
 def config_save(self, subview):
     data = subview.get_all()
     new = Account()
     new.setName(data[0])
     new.setEmail(data[1])
     new.setPassword(data[2])
     new.setAccountTeam(data[3])
     new.setAccountType(data[4])
     new.setDepartment(data[5])
     new.setComment(data[6])
     self.model.account_db.update(new)
Example #6
0
 def new_account_submit(self, subview):
     data = subview.get_all()
     data[1] += "@sep.se"
     data[3] = self.str_to_enum(data[3]).value
     data[4] = self.str_to_enum(data[4]).value
     new = Account()
     new.setName(data[0])
     new.setEmail(data[1])
     new.setPassword(data[2])
     new.setAccountTeam(data[3])
     new.setAccountType(data[4])
     new.setDepartment(data[5])
     new.setComment(data[6])
     self.model.account_db.add(new)
     self.clear_frame(subview)