def personFactory(self, namegen, prefixgen, gendergen, count): first_name, last_name, full_name = namegen.generate() person_id = 'student%03d' % count person = BasicPerson(person_id, first_name, last_name) person.setPassword(person_id) person.gender = gendergen.generate() return person
def personFactory(self, namegen, count): first_name, last_name, full_name = namegen.generate() person_id = 'teacher%03d' % count person = BasicPerson(person_id, first_name, last_name) person.setPassword(person_id) return person