Просмотр исходного кода

[minor] added option to set mariadb password for setup help;

version-14
Rushabh Mehta 9 лет назад
Родитель
Сommit
e91f5c8f7a
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      frappe/commands/utils.py

+ 4
- 1
frappe/commands/utils.py Просмотреть файл

@@ -384,13 +384,16 @@ def get_version():
print "{0} {1}".format(m, module.__version__) print "{0} {1}".format(m, module.__version__)


@click.command('setup-help') @click.command('setup-help')
def setup_help():
@click.option('--mariadb_root_password')
def setup_help(mariadb_root_password=None):
"Make a database for help documentation" "Make a database for help documentation"
frappe.local.flags = frappe._dict() frappe.local.flags = frappe._dict()
frappe.local.flags.in_setup_help = True frappe.local.flags.in_setup_help = True
frappe.local.flags.in_install = True frappe.local.flags.in_install = True
frappe.local.lang = 'en' frappe.local.lang = 'en'
frappe.local.conf = frappe.get_site_config(sites_path='.') frappe.local.conf = frappe.get_site_config(sites_path='.')
if mariadb_root_password:
frappe.local.conf.root_password = mariadb_root_password
from frappe.utils.help import sync from frappe.utils.help import sync
sync() sync()




Загрузка…
Отмена
Сохранить