goa/skel/loader.py
changeset 2485 ae74b46ea96c
parent 2476 1294a6bdf3bf
child 4212 ab6573088b4a
equal deleted inserted replaced
2484:7e9283731db8 2485:ae74b46ea96c
    10     from os.path import dirname, abspath
    10     from os.path import dirname, abspath
    11     from cubicweb import goa
    11     from cubicweb import goa
    12     from cubicweb.goa.goaconfig import GAEConfiguration
    12     from cubicweb.goa.goaconfig import GAEConfiguration
    13     from cubicweb.goa.dbinit import create_user, create_groups
    13     from cubicweb.goa.dbinit import create_user, create_groups
    14 
    14 
    15     # compute application's root directory
    15     # compute instance's root directory
    16     APPLROOT = dirname(abspath(__file__))
    16     APPLROOT = dirname(abspath(__file__))
    17     # apply monkey patches first
    17     # apply monkey patches first
    18     goa.do_monkey_patch()
    18     goa.do_monkey_patch()
    19     # get application's configuration (will be loaded from app.conf file)
    19     # get instance's configuration (will be loaded from app.conf file)
    20     GAEConfiguration.ext_resources['JAVASCRIPTS'].append('DATADIR/goa.js')
    20     GAEConfiguration.ext_resources['JAVASCRIPTS'].append('DATADIR/goa.js')
    21     config = GAEConfiguration('toto', APPLROOT)
    21     config = GAEConfiguration('toto', APPLROOT)
    22     # create default groups
    22     # create default groups
    23     create_groups()
    23     create_groups()
    24     if not config['use-google-auth']:
    24     if not config['use-google-auth']: