equal
deleted
inserted
replaced
90 class MigrationHelper(object): |
90 class MigrationHelper(object): |
91 """class holding CubicWeb Migration Actions used by migration scripts""" |
91 """class holding CubicWeb Migration Actions used by migration scripts""" |
92 |
92 |
93 def __init__(self, config, interactive=True, verbosity=1): |
93 def __init__(self, config, interactive=True, verbosity=1): |
94 self.config = config |
94 self.config = config |
95 self.config.init_log(logthreshold=logging.ERROR, debug=True) |
95 if config: |
|
96 # no config on shell to a remote instance |
|
97 self.config.init_log(logthreshold=logging.ERROR, debug=True) |
96 # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything |
98 # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything |
97 self.verbosity = verbosity |
99 self.verbosity = verbosity |
98 self.need_wrap = True |
100 self.need_wrap = True |
99 if not interactive or not verbosity: |
101 if not interactive or not verbosity: |
100 self.confirm = yes |
102 self.confirm = yes |