Changeset 6749 for main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
- Timestamp:
- 13 Sep 2011, 15:46:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r6704 r6749 19 19 import grok 20 20 from grok import index 21 from zope.component.interfaces import IFactory , ComponentLookupError21 from zope.component.interfaces import IFactory 22 22 from zope.interface import implementedBy 23 23 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState … … 40 40 super(Student, self).__init__() 41 41 IWorkflowInfo(self).fireTransition('create') 42 # The catalogdoesn't exist in unit tests42 # The site doesn't exist in unit tests 43 43 try: 44 self.student_id = generate_student_id('?') 45 except ComponentLookupError: 44 students = grok.getSite()['students'] 45 self.student_id = generate_student_id(students,'?') 46 except TypeError: 46 47 self.student_id = u'Z654321' 47 48 self.password = None
Note: See TracChangeset for help on using the changeset viewer.