devtools/__init__.py
changeset 7040 9b1f9bc74f5d
parent 7032 b712477ae286
child 7056 51f88f13d6f3
equal deleted inserted replaced
7025:fee3a1f28ed7 7040:9b1f9bc74f5d
    83     mode = 'test'
    83     mode = 'test'
    84     set_language = False
    84     set_language = False
    85     read_instance_schema = False
    85     read_instance_schema = False
    86     init_repository = True
    86     init_repository = True
    87     db_require_setup = True
    87     db_require_setup = True
    88     options = cwconfig.merge_options(ServerConfiguration.options + (
    88     options = cwconfig.merge_options(
    89         ('anonymous-user',
    89         ServerConfiguration.options +
    90          {'type' : 'string',
    90         tuple((opt, optdict) for opt, optdict in TwistedConfiguration.options
    91           'default': None,
    91               if opt in ('anonymous-user', 'anonymous-password')))
    92           'help': 'login of the CubicWeb user account to use for anonymous user (if you want to allow anonymous)',
       
    93           'group': 'main', 'level': 1,
       
    94           }),
       
    95         ('anonymous-password',
       
    96          {'type' : 'string',
       
    97           'default': None,
       
    98           'help': 'password of the CubicWeb user account matching login',
       
    99           'group': 'main', 'level': 1,
       
   100           }),
       
   101         ))
       
   102 
    92 
   103     def __init__(self, appid, apphome=None, log_threshold=logging.CRITICAL+10):
    93     def __init__(self, appid, apphome=None, log_threshold=logging.CRITICAL+10):
   104         # must be set before calling parent __init__
    94         # must be set before calling parent __init__
   105         if apphome is None:
    95         if apphome is None:
   106             if exists(appid):
    96             if exists(appid):