Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

askbot-setup: Accepting 'database_name' for sqlite engine from cmd line argument #103

Merged
merged 1 commit into from
Aug 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions askbot/deployment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def deploy_askbot(options):
def collect_missing_options(options_dict):
options_dict['secret_key'] = generate_random_key()
if options_dict['database_engine'] == '2':#sqlite
if 'database_name' in options_dict:
return options_dict
while True:
value = console.simple_dialog(
'Please enter database file name'
Expand All @@ -217,6 +219,8 @@ def collect_missing_options(options_dict):
print 'name %s cannot be used for the database name' % value
elif value == path_utils.LOG_DIR_NAME:
print 'name %s cannot be used for the database name' % value
else:
database_file_name = value

if database_file_name:
options_dict['database_name'] = database_file_name
Expand Down