You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2019/06/07 05:15:08 UTC
[incubator-superset] branch master updated: [docs] Fix,
deprecate fabmanager cli (#7660)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new de9f61e [docs] Fix, deprecate fabmanager cli (#7660)
de9f61e is described below
commit de9f61e9340b4e03863eae3915edc6121e1369e2
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Fri Jun 7 06:15:00 2019 +0100
[docs] Fix, deprecate fabmanager cli (#7660)
---
CONTRIBUTING.md | 6 +++---
contrib/docker/docker-init.sh | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 680f4f1..20ffa24 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -319,7 +319,7 @@ pip install -r requirements-dev.txt
pip install -e .
# Create an admin user in your metadata database
-fabmanager create-admin --app superset
+flask fab create-admin --app superset
# Initialize the database
superset db upgrade
@@ -594,7 +594,7 @@ LANGUAGES = {
### Extracting new strings for translation
```bash
-fabmanager babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _ -k __ -k t -k tn -k tct
+flask fab babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _ -k __ -k t -k tn -k tct
```
You can then translate the strings gathered in files located under
@@ -607,7 +607,7 @@ For the translations to take effect:
```bash
# In the case of JS translation, we need to convert the PO file into a JSON file, and we need the global download of the npm package po2json.
npm install -g po2json
-fabmanager babel-compile --target superset/translations
+flask fab babel-compile --target superset/translations
# Convert the en PO file into a JSON file
po2json -d superset -f jed1.x superset/translations/en/LC_MESSAGES/messages.po superset/translations/en/LC_MESSAGES/messages.json
```
diff --git a/contrib/docker/docker-init.sh b/contrib/docker/docker-init.sh
index 0e8b87d..dbcdefc 100755
--- a/contrib/docker/docker-init.sh
+++ b/contrib/docker/docker-init.sh
@@ -18,7 +18,7 @@
set -ex
# Create an admin user (you will be prompted to set username, first and last name before setting a password)
-fabmanager create-admin --app superset
+flask fab create-admin --app superset
# Initialize the database
superset db upgrade