From 812997204f8fd2257faabd51a2a9f42ac2ed1284 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Fri, 12 Jan 2007 07:40:24 +0000 Subject: [PATCH] * Main change: added `active-dirs' and `inactive-dirs' as configuration options instead of moving directories. * Don't show solutions in active assignments, also check that when downloading files. * Improved (no `suffix:') error messages for errors that users should eventually see. svn: r5331 --- collects/handin-server/doc.txt | 176 ++++++++++-------- collects/handin-server/extra-utils.ss | 19 +- collects/handin-server/handin-server.ss | 149 +++++++-------- collects/handin-server/private/config.ss | 27 ++- .../status-web-root/servlets/status.ss | 100 +++++----- 5 files changed, 244 insertions(+), 227 deletions(-) diff --git a/collects/handin-server/doc.txt b/collects/handin-server/doc.txt index d6ba5bdf4e..8abcd6f2fc 100644 --- a/collects/handin-server/doc.txt +++ b/collects/handin-server/doc.txt @@ -51,9 +51,10 @@ Quick Start for a Test Drive: "Chester Tester" "123"))) - 5. Make an "active" subdirectory in your new directory. + 5. Make an "test" subdirectory in your new directory. - 6. Make a "test" subdirectory in "active". + 6. Create a file "config.ss" with the following content: + ((active-dirs ("test"))) 7. In your new directory, run mred -mvqM handin-server @@ -65,7 +66,7 @@ Quick Start for a Test Drive: 9. Start DrScheme, click "Handin" to run the client, submit with username "tester" and password "pw". - The submitted file will be .../active/test/tester/handin.scm. + The submitted file will be .../test/tester/handin.scm. 10. Check the status of your submission by pointing a web browser at https://localhost:7980/servlets/status.ss @@ -164,13 +165,22 @@ sub-directories: students with the handin client, "private-key.pem" is kept private. - * "config.ss" (optional) --- configuration options. The file format - is + * "config.ss" --- configuration options. The file format is (( ) ...) The following keys can be used (without the preceding quote): + 'active-dirs : a list of directories that are active + submissions, relative to the current directory or absolute; + the last path element for each of these (and 'inactive-dirs + below) should be unique, and is used to identify the + submission (for example, in the client's submission dialog + and in the status servlet) + + 'inactive-dirs : a list of inactive submission directories (see + above for details) + 'port-number : the port for the main handin server; the default is 7979 @@ -299,7 +309,8 @@ sub-directories: don't save a copy that has inconsistent options: it is best to create a new configuration file and move it over the old one, or use an editor that does so and not save until the new contents is - ready.) + ready.) This is most useful for closing & openning submission + directories. * "users.ss" (created if not present if a user is added) --- keeps the list of user accounts, along with the associated password @@ -362,67 +373,81 @@ sub-directories: 'plaintext symbol, which will be used without encryption. This may be useful for manually resetting a forgotten passwords. - * "active/" --- sub-directory for active assignments. A list of - active assignments is sent to a client tool when a student clicks - "Handin", based on the contents of this directory. The student - then selects from the list. The assignments are ordered in the - student's menu using `string|