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

« back to all changes in this revision

Viewing changes to ivle/webapp/userservice/__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:
260
260
            'subj_name':       e.offering.subject.name,
261
261
            'subj_short_name': e.offering.subject.short_name,
262
262
            'year':            e.offering.semester.year,
263
 
            'semester':        e.offering.semester.semester,
 
263
            'semester_url':    e.offering.semester.url_name,
 
264
            'semester_display':e.offering.semester.display_name,
264
265
            'state':           e.offering.semester.state,
265
266
            'groups':          [{'name': group.name,
266
267
                                 'nick': group.nick} for group in e.groups]
361
362
    args = {
362
363
        "subj_short_name": offering.subject.short_name,
363
364
        "year": offering.semester.year,
364
 
        "semester": offering.semester.semester,
 
365
        "semester": offering.semester.url_name,
365
366
        "groupnm": group.name,
366
367
    }
367
368
    msg = {'create_group_repository': args}