etwist/twctl.py
branchstable
changeset 7140 ba51dac1115d
parent 6778 7dd4835d5198
child 7619 0d0344fd5231
equal deleted inserted replaced
7139:20807d3d7cf6 7140:ba51dac1115d
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    49         """configuration to get an instance running in a twisted web server
    49         """configuration to get an instance running in a twisted web server
    50         integrating a repository server in the same process
    50         integrating a repository server in the same process
    51         """
    51         """
    52         cfgname = 'all-in-one'
    52         cfgname = 'all-in-one'
    53 
    53 
    54         def bootstrap(self, cubes, inputlevel=0):
    54         def bootstrap(self, cubes, automatic=False, inputlevel=0):
    55             """bootstrap this configuration"""
    55             """bootstrap this configuration"""
    56             serverctl.RepositoryCreateHandler.bootstrap(self, cubes, inputlevel)
    56             serverctl.RepositoryCreateHandler.bootstrap(self, cubes, automatic, inputlevel)
    57             TWCreateHandler.bootstrap(self, cubes, inputlevel)
    57             TWCreateHandler.bootstrap(self, cubes, automatic, inputlevel)
    58 
    58 
    59     class AllInOneStartHandler(TWStartHandler):
    59     class AllInOneStartHandler(TWStartHandler):
    60         cmdname = 'start'
    60         cmdname = 'start'
    61         cfgname = 'all-in-one'
    61         cfgname = 'all-in-one'
    62         subcommand = 'cubicweb-twisted'
    62         subcommand = 'cubicweb-twisted'