Changeset 8325 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 2 May 2012, 09:40:57 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8323 r8325 927 927 @action(_('Add course ticket')) 928 928 def addCourseTicket(self, **data): 929 ticket = CourseTicket()929 ticket = createObject(u'waeup.CourseTicket') 930 930 course = data['course'] 931 931 ticket.automatic = False … … 1892 1892 if self.context.getStudent().state != PAID: 1893 1893 return 1894 ticket = CourseTicket()1894 ticket = createObject(u'waeup.CourseTicket') 1895 1895 course = data['course'] 1896 1896 for name in ['code', 'title', 'credits', 'passmark', 'semester']: -
main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py
r8323 r8325 22 22 import grok 23 23 from zope.component.interfaces import IFactory 24 from zope.component import createObject 24 25 from zope.interface import implementedBy 25 26 from waeup.kofa.students.interfaces import ( … … 58 59 if val.level != studylevel.level: 59 60 continue 60 ticket = CourseTicket()61 ticket = createObject(u'waeup.CourseTicket') 61 62 ticket.code = val.getCourseCode() 62 63 ticket.automatic = True … … 86 87 # Carry-over ticket exists 87 88 continue 88 co_ticket = CourseTicket()89 co_ticket = createObject(u'waeup.CourseTicket') 89 90 for name in ['code', 'title', 'credits', 'passmark', 90 91 'semester', 'mandatory',
Note: See TracChangeset for help on using the changeset viewer.