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

1811 by Matt Giuca
Added new function on Project page to export a Bash script which exports all submissions for that project. (LP: #579771)
1
#!/bin/sh -e
2
# IVLE staff project export script
3
# ${project.project_set.offering.subject.name} -- ${project.name}
4
# Script current as of ${format_datetime(now)}
5
# Script for IVLE user '${user.login}'
6
7
# DO NOT EDIT THIS FILE -- IT HAS BEEN AUTOMATICALLY GENERATED
8
9
# This script exports all submissions to the above project as of the above
10
# date. Running this script will download the submissions from the IVLE server
11
# to your local machine for inspection, marking and testing.
12
# Only the above-named user can successfully run this script.
13
14
# If you wish to capture any submissions made since the above date, you will
15
# need to re-generate this script from the project page in IVLE.
16
17
# INSTRUCTIONS:
18
# Make this file executable (chmod +x project-export.sh)
19
# From an empty directory, run the command:
20
# $ ./project-export.sh
21
22
# Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}
1812.1.8 by Matt Giuca
project-export.sh: Now shows the '*' for late submissions, and number of days late in the comments for this script.
23
# * Late submissions (number of days late)
1811 by Matt Giuca
Added new function on Project page to export a Bash script which exports all submissions for that project. (LP: #579771)
24
25
{% if project.latest_submissions.count() == 0 %}# There are no submissions.{% end %}{% if project.latest_submissions.count() > 0 %}# Group		Submitter		Date
1812.1.12 by Matt Giuca
Project page: Removed the space before the '*'.
26
{% for submission in project.latest_submissions %}# {% choose submission.assessed.principal is submission.submitter %}{% when True %}-{% end %}{% otherwise %}${submission.assessed.principal.short_name}{% end %}{% end %}		${submission.submitter.short_name}		${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}{% if submission.late %}* (${submission.days_late}){% end %}
1811 by Matt Giuca
Added new function on Project page to export a Bash script which exports all submissions for that project. (LP: #579771)
27
${submission.get_svn_export_command(req)}
28
{% end %}
29
{% end %}