示例#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