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

« back to all changes in this revision

Viewing changes to bin/ivle-createdatadirs

  • Committer: Matt Giuca
  • Date: 2010-03-22 06:05:32 UTC
  • Revision ID: matt.giuca@gmail.com-20100322060532-5365361xrx9mh32v
Changed database.py get_svn_url to take a req; include the req.user.login in the Subversion URL. This allows you to check out repositories without separately supplying the IVLE URL (as Subversion won't ask for a username by default). Also removed --username= from the lecturer project view, as it's redundant now. This fixes Launchpad bug #543936.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
import sys
 
25
import logging
25
26
 
26
27
import ivle.conf
27
28
 
 
29
logging.basicConfig(
 
30
    format='%(asctime)s %(levelname)s %(message)s',
 
31
    level=logging.INFO)
 
32
 
28
33
if os.path.exists(ivle.conf.data_path):
29
 
    sys.exit('%s already exists - not doing anything' % ivle.conf.data_path)
 
34
    logging.info('%s already exists - not doing anything' % ivle.conf.data_path)
 
35
    sys.exit(0)
30
36
 
31
37
os.makedirs(ivle.conf.jail_base)
32
38
os.makedirs(ivle.conf.jail_src_base)