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

« back to all changes in this revision

Viewing changes to ivle/makeuser.py

  • Committer: William Grant
  • Date: 2010-02-18 02:41:27 UTC
  • Revision ID: grantw@unimelb.edu.au-20100218024127-ohkn1h7g76nt42jk
Manually initialise the sections when creating an in-jail ivle.conf, since configobj 4.7.0 doesn't do it for us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
    # So we just write root_dir.
327
327
    conf_obj = ivle.config.Config(blank=True)
328
328
    conf_obj.filename = conf_path
 
329
    conf_obj['urls'] = {}
329
330
    conf_obj['urls']['root'] = sys_config['urls']['root']
330
331
    conf_obj['urls']['public_host'] = sys_config['urls']['public_host']
331
332
    conf_obj['urls']['svn_addr'] = sys_config['urls']['svn_addr']
 
333
    conf_obj['user_info'] = {}
332
334
    conf_obj['user_info']['login'] = username
333
335
    conf_obj['user_info']['svn_pass'] = svn_pass
334
336
    conf_obj.write()