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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject.py

Now respects --zip, and creates Zip files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
 
221
221
    def populate(self, req, ctx):
222
222
        ctx['format_datetime_short'] = ivle.date.format_datetime_for_paragraph
223
 
 
224
223
        ctx['project'] = self.context
225
 
        ctx['assesseds'] = self.context.assesseds
226
 
 
227
 
        ctx['submissions'] = []
228
 
        for assessed in self.context.assesseds:
229
 
            if assessed.submissions.count() > 0:
230
 
                ctx['submissions'].append(
231
 
                        assessed.submissions.order_by(
232
 
                            ProjectSubmission.date_submitted)[-1])
233
 
        ctx['assigned'] = self.context.project_set.get_assigned()
234
224
 
235
225
class Plugin(ViewPlugin, MediaPlugin):
236
226
    urls = [