web/webctl.py
changeset 3589 a5432f99f2d9
parent 2790 968108e16066
parent 3539 f3b14d052798
child 4252 6c4f109c2b03
equal deleted inserted replaced
3536:f6c9a5df80fb 3589:a5432f99f2d9
    14 class WebCreateHandler(CommandHandler):
    14 class WebCreateHandler(CommandHandler):
    15     cmdname = 'create'
    15     cmdname = 'create'
    16 
    16 
    17     def bootstrap(self, cubes, inputlevel=0):
    17     def bootstrap(self, cubes, inputlevel=0):
    18         """bootstrap this configuration"""
    18         """bootstrap this configuration"""
    19         print '\n'+underline_title('Generic web configuration')
    19         print '\n' + underline_title('Generic web configuration')
    20         config = self.config
    20         config = self.config
    21         if config.repo_method == 'pyro':
    21         if config.repo_method == 'pyro':
    22             print '\n'+underline_title('Repository server configuration')
    22             print '\n' + underline_title('Pyro configuration')
    23             config.input_config('pyro-client', inputlevel)
    23             config.input_config('pyro', inputlevel)
    24         if ASK.confirm('Allow anonymous access ?', False):
    24         if ASK.confirm('Allow anonymous access ?', False):
    25             config.global_set_option('anonymous-user', 'anon')
    25             config.global_set_option('anonymous-user', 'anon')
    26             config.global_set_option('anonymous-password', 'anon')
    26             config.global_set_option('anonymous-password', 'anon')
    27 
    27 
    28     def postcreate(self):
    28     def postcreate(self):