From 79b05569641fa8a844890bf02683df61a7e0fa0e Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Tue, 11 Aug 2020 14:35:25 +0200 Subject: [PATCH] fix sensitive_dev missing --- bootstrap/sensitive_dev.py | 1 + bootstrap/webapp/view_models/Example.yaml_ | 2 +- oshipka.sh | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 bootstrap/sensitive_dev.py diff --git a/bootstrap/sensitive_dev.py b/bootstrap/sensitive_dev.py new file mode 100644 index 0000000..d7a8fc3 --- /dev/null +++ b/bootstrap/sensitive_dev.py @@ -0,0 +1 @@ +ADMIN_PASSWORD = "password" diff --git a/bootstrap/webapp/view_models/Example.yaml_ b/bootstrap/webapp/view_models/Example.yaml_ index 9235a97..18707da 100644 --- a/bootstrap/webapp/view_models/Example.yaml_ +++ b/bootstrap/webapp/view_models/Example.yaml_ @@ -3,7 +3,7 @@ name: Example # name of the model searchable: # list of columns that are searchable - body -interits: # list of inheritable classes, each line is one of (Ownable|Datable) +interits: # list of inheritable classes, each line is one of (Ownable) - Ownable access: - verb: all diff --git a/oshipka.sh b/oshipka.sh index 925df66..696cb1f 100755 --- a/oshipka.sh +++ b/oshipka.sh @@ -94,7 +94,12 @@ link_dev_oshipka() { download_sensitive() { if [ ! -f sensitive.py ]; then echo "File sensitive.py NOT FOUND" - exit 1; + if [ -f sensitive_dev.py ]; then + echo "Copying sensitive_dev for dev env" + cp sensitive_dev.py sensitive.py + else + exit 1; + fi fi }