Changeset 1859
- Timestamp:
- 7 Jun 2007, 19:30:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/personal_edit.py
r1571 r1859 41 41 if is_valid: 42 42 if cpsdocument_edit_button: 43 name = "%(firstname)s %(middlename)s %(lastname)s" % ds44 name = name.strip()45 name = name.replace(' ',' ')46 email = ds.get('email')47 phone = ds.get('phone')48 student_id = context.getStudentId()49 context.students_catalog.modifyRecord(id = student_id,50 name = name,51 email = email,52 phone = phone,53 sex = ds.get('sex'),54 )55 43 logger.info('%s edited personal data' % (info['id'])) 44 # name = "%(firstname)s %(middlename)s %(lastname)s" % ds 45 # name = name.strip() 46 # name = name.replace(' ',' ') 47 # email = ds.get('email') 48 # phone = ds.get('phone') 49 # student_id = context.getStudentId() 50 # context.students_catalog.modifyRecord(id = student_id, 51 # name = name, 52 # email = email, 53 # phone = phone, 54 # sex = ds.get('sex'), 55 # ) 56 56 #action = "" 57 57 #base_url = student.absolute_url()
Note: See TracChangeset for help on using the changeset viewer.