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

« back to all changes in this revision

Viewing changes to bin/ivle-config

Remove HTML support from ivle.request.Request.

Drop Request.title and Request.write_html_head_foot, as they are not useful
without HTML support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
# ('/usr/local' for the usual install, '/usr' for distribution packages)""",
76
76
    ask=False))
77
77
 
 
78
config_options.append(ConfigOption("paths/site_packages",
 
79
    None,
 
80
    """site-packages directory in Python, where Python libraries are to be
 
81
installed. May be left as the default, in which case the value will be
 
82
computed from prefix and the current Python version:""",
 
83
    """
 
84
# 'site-packages' directory in Python, where Python libraries are to be
 
85
# installed. May be omitted (recommended), in which case the value will be
 
86
# computed from prefix and the current Python version.""", ask=False))
 
87
 
78
88
config_options.append(ConfigOption("paths/data",
79
89
    "/var/lib/ivle",
80
90
    "In the local file system, where user-modifiable data files should be "
103
113
# Private mode (normal mode) requires login, and only serves files relevant to
104
114
# the logged-in user."""))
105
115
 
106
 
config_options.append(ConfigOption("media/version", None,
107
 
    """Version of IVLE media resources (must change on each upgrade):""",
108
 
    """
109
 
# Version string for IVLE media resource URLs. When set, they are aggressively
110
 
# cached by the browser, so it must be either left unset or changed each time
111
 
# a media file is changed.""", ask=False))
112
 
 
113
116
config_options.append(ConfigOption("database/host", "localhost",
114
117
    """PostgreSQL Database config
115
118
==========================
319
322
            or conf['database']['port'] >= 65536):
320
323
            raise ValueError()
321
324
    except ValueError:
322
 
        if conf['database']['port'] == '' or conf['database']['port'] is None:
323
 
            pass
324
 
        else:
325
 
            print >>sys.stderr, (
326
 
            "Invalid DB port (%s).\n"
327
 
            "Must be an integer between 0 and 65535." %
328
 
                repr(conf['database']['port']))
329
 
            return 1
 
325
        print >>sys.stderr, (
 
326
        "Invalid DB port (%s).\n"
 
327
        "Must be an integer between 0 and 65535." %
 
328
            repr(conf['database']['port']))
 
329
        return 1
330
330
    try:
331
331
        conf['usrmgt']['port'] = int(conf['usrmgt']['port'])
332
332
        if (conf['usrmgt']['port'] < 0 or conf['usrmgt']['port'] >= 65536):
377
377
[ivle.webapp.tos#Plugin]
378
378
[ivle.webapp.userservice#Plugin]
379
379
[ivle.webapp.fileservice#Plugin]
380
 
[ivle.webapp.submit#Plugin]
381
380
""")
382
381
    plugindefault.close()
383
382
    print "Successfully wrote %s" % plugindefaultfile