Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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