Changeset 1721 for WAeUP_SRP/trunk
- Timestamp:
- 28 Apr 2007, 09:42:26 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1720 r1721 578 578 no_certificate = "no certificate %s" % format 579 579 open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write('\n'.join(no_import)) 580 logger = logging.getLogger('Students.StudentsFolder.create NewStudents')580 logger = logging.getLogger('Students.StudentsFolder.createStudents') 581 581 logger.info('Start loading from %s.csv' % name) 582 582 certs = {} -
WAeUP_SRP/trunk/WAeUPTool.py
r1720 r1721 93 93 sid = "%c%d" % (letter,r.randint(99999,1000000)) 94 94 students = self.portal_url.getPortalObject().campus.students 95 while hasattr(students, sid): 95 ## while hasattr(students, sid): 96 ## sid = "%c%d" % (letter,r.randint(99999,1000000)) 97 while self.students_catalog(id = sid): 96 98 sid = "%c%d" % (letter,r.randint(99999,1000000)) 97 ## while self.students_catalog(id = sid):98 ## sid = "%c%d" % (letter,r.randint(99999,1000000))99 99 return sid 100 100 ###)
Note: See TracChangeset for help on using the changeset viewer.