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 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)
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)