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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/project-export.sh

  • Committer: David Coles
  • Date: 2010-07-28 10:45:53 UTC
  • mfrom: (1829 trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: coles.david@gmail.com-20100728104553-5z3nxt0l6kyfqfh5
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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()}
 
23
# * Late submissions (number of days late)
 
24
 
 
25
{% if project.latest_submissions.count() == 0 %}# There are no submissions.{% end %}{% if project.latest_submissions.count() > 0 %}# Group              Submitter               Date
 
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 %}
 
27
${submission.get_svn_export_command(req)}
 
28
{% end %}
 
29
{% end %}