Changeset 6679
- Timestamp:
- 4 Sep 2011, 23:34:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/container.py
r6663 r6679 20 20 import os 21 21 from zope.component.interfaces import IFactory 22 from waeup.sirp.interfaces import IUserAccount 22 23 from waeup.sirp.students.interfaces import ( 23 24 IStudentsContainer, IStudent, IStudentPayments, IStudentAccommodation) … … 54 55 accommodation = StudentAccommodation() 55 56 self[student.student_id]['accommodation'] = accommodation 57 # assign student role for new student 58 account = IUserAccount(student) 59 account.roles = 'waeup.Student' 56 60 # Return student_id (only needed in tests) 57 61 return student.student_id
Note: See TracChangeset for help on using the changeset viewer.