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

« back to all changes in this revision

Viewing changes to src/conf/app/server.py

  • Committer: chadnickbok
  • Date: 2009-01-19 22:56:46 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1170
This commit fixes issue #10 and part of issue #9

There are now two options for moving files with their
svn history intact; svn move and svn copy. These
use the svn commands to move the files, allowing students
to move and rename files without their histories being
lost.

This commit also shows the svn status of a dir, if it is
the 'head' of an svn repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# IVLE Configuration File
2
 
# conf/app/server.py
3
 
# Configuration for Server ('serve') app.
4
 
# These should not need to be modified by admins unless new languages become
5
 
# supported.
6
 
 
7
 
# Note that this configuration file uses mime types to identify files.
8
 
# conf/mimetypes.py may need to be modified to configure mime types outside of
9
 
# the system's default mime types.
10
 
 
11
 
# All files served whose mime type cannot be guessed will be served as this
12
 
# type.
13
 
default_mimetype = "text/plain"
14
 
 
15
 
# Mapping mime types to interpreters
16
 
# Interpreters are built-in to IVLE, and identified by their string names.
17
 
# Available interpreters are:
18
 
#   cgi-generic
19
 
#       Runs any executable file as a CGI program
20
 
#   cgi-python
21
 
#       Runs a Python script as a CGI program
22
 
#   python-server-page
23
 
#       Runs a Python Server Page (psp) file
24
 
 
25
 
interpreters = {
26
 
    "text/x-python" : "cgi-python",
27
 
    "text/x-python-server-page" : "python-server-page",
28
 
}
29
 
 
30
 
# Non-interpreted files fall back to either being served directly, or
31
 
# returning a 403 Forbidden.
32
 
# This decision can either be made with a blacklist or a whitelist.
33
 
 
34
 
blacklist_served_filetypes = False
35
 
 
36
 
# blacklist_served_filetypes = False causes IVLE to disallow all filetypes by
37
 
# default, and use served_filetypes_whitelist for exceptions.
38
 
# blacklist_served_filetypes = True causes IVLE to allow all filetypes by
39
 
# default, and use served_filetypes_blacklist for exceptions.
40
 
 
41
 
# The whitelist/blacklist dictionaries are sets of mime types to allow or
42
 
# disallow respectively.
43
 
 
44
 
served_filetypes_whitelist = set([
45
 
    "application/ecmascript",
46
 
    "application/octet-stream",
47
 
    "application/pdf",
48
 
    "application/postscript",
49
 
    "application/javascript",
50
 
    "application/json",
51
 
    "application/xhtml+xml",
52
 
    "application/xml",
53
 
    "application/zip",
54
 
 
55
 
    "audio/x-wav",
56
 
    "audio/mpeg",
57
 
    "audio/midi",
58
 
 
59
 
    "image/gif",
60
 
    "image/jpeg",
61
 
    "image/png",
62
 
 
63
 
    "text/css",
64
 
    "text/csv",
65
 
    "text/csv",
66
 
    "text/html",
67
 
    "text/plain",
68
 
    "text/xml",
69
 
])
70
 
 
71
 
served_filetypes_blacklist = set([
72
 
    "application/x-executable",
73
 
])
74