cubicweb/web/webctl.py
branch3.25
changeset 12197 43022c1fa133
parent 12159 8a1306c43656
child 12268 d84bc85f7f70
equal deleted inserted replaced
12196:b6b87c36beed 12197:43022c1fa133
    74         if not dest:
    74         if not dest:
    75             dest = config['staticdir-path']
    75             dest = config['staticdir-path']
    76         if not dest:
    76         if not dest:
    77             dest = osp.join(config.appdatahome, 'data')
    77             dest = osp.join(config.appdatahome, 'data')
    78         if osp.exists(dest):
    78         if osp.exists(dest):
    79             if (not ask_clean or
    79             if config.verbosity and (not ask_clean or
    80                 not (config.verbosity and
    80                 not (config.verbosity and
    81                      ASK.confirm('Remove existing data directory %s?' % dest))):
    81                      ASK.confirm('Remove existing data directory %s?' % dest))):
    82                 raise ExecutionError('Directory %s already exists. '
    82                 raise ExecutionError('Directory %s already exists. '
    83                                      'Remove it first.' % dest)
    83                                      'Remove it first.' % dest)
    84             rmtreecontent(dest)
    84             rmtreecontent(dest)