##// END OF EJS Templates
setup_rhodecode: fix --force-no - force_ask is tri-state...
Mads Kiilerich -
r3671:658ccf97 beta
parent child Browse files
Show More
@@ -67,12 +67,11 b' class DbManage(object):'
67 self.db_exists = False
67 self.db_exists = False
68 self.cli_args = cli_args
68 self.cli_args = cli_args
69 self.init_db()
69 self.init_db()
70 global ask_ok
71
70
72 if self.cli_args.get('force_ask'):
71 force_ask = self.cli_args.get('force_ask')
73 ask_ok = lambda *args, **kwargs: True
72 if force_ask is not None:
74 elif not self.cli_args.get('force_ask'):
73 global ask_ok
75 ask_ok = lambda *args, **kwargs: False
74 ask_ok = lambda *args, **kwargs: force_ask
76
75
77 def init_db(self):
76 def init_db(self):
78 engine = create_engine(self.dburi, echo=self.log_sql)
77 engine = create_engine(self.dburi, echo=self.log_sql)
General Comments 0
You need to be logged in to leave comments. Login now