~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/__init__.py

Semesters now have separate URL name, display name and code attributes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
        ctx['subject'] = self.context.offering.subject
85
85
        ctx['worksheet'] = self.context
86
 
        ctx['semester'] = self.context.offering.semester.semester
 
86
        ctx['semester'] = self.context.offering.semester.url_name
87
87
        ctx['year'] = self.context.offering.semester.year
88
88
 
89
89
        ctx['worksheetstream'] = genshi.Stream(list(genshi.XML(self.context.data_xhtml)))
461
461
        
462
462
        ctx['subject'] = self.context.subject
463
463
        ctx['year'] = self.context.semester.year
464
 
        ctx['semester'] = self.context.semester.semester
 
464
        ctx['semester'] = self.context.semester.url_name
465
465
        
466
466
        ctx['worksheets'] = self.context.worksheets
467
467