From 6e29aebd82843e6ab2465b59adff57cc1e973bbe Mon Sep 17 00:00:00 2001 From: Brian Read Date: Thu, 19 Sep 2024 10:00:50 +0100 Subject: [PATCH] Sort out parameters to sm2gen --- SM2GenAll.sh | 2 +- .../CreateStarterWebsite-Custom.pm | 3 +- .../CreateStarterWebsite-Custom.pm.new | 6 +- .../CreateStarterWebsite.pm | 2 +- .../CreateStarterWebsite/_csw_PARAMS.html.ep | 16 +-- .../createstarterwebsite.css | 2 +- .../createstarterwebsite.html.ep | 18 +-- .../createstarterwebsite_en.lex | 30 ++--- Templates/layout.html.ep.tem | 4 +- sm2gen.py | 112 ++++++++++-------- 10 files changed, 103 insertions(+), 92 deletions(-) diff --git a/SM2GenAll.sh b/SM2GenAll.sh index 579f9b8..6912ea7 100755 --- a/SM2GenAll.sh +++ b/SM2GenAll.sh @@ -24,7 +24,7 @@ else fi # Run the second program -python3 sm2gen.py -f json5/"$2.json5" +python3 sm2gen.py -f json5/"$2.json5" --force --noLang if [ $? -ne 0 ]; then echo "Error: sm2gen.py failed." exit 1 diff --git a/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm b/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm index 6ebd805..44fc6f9 100644 --- a/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm +++ b/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm @@ -1,11 +1,10 @@ # -# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 08:37:59 +# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41 # # # Routines to be edited by the developer to provide validation for parameters # and provison of the control data for table(s) # -## use esmith::util; use esmith::HostsDB; use esmith::AccountsDB; diff --git a/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm.new b/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm.new index b103766..934992d 100644 --- a/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm.new +++ b/Targets/CreateStarterWebsite/CreateStarterWebsite-Custom.pm.new @@ -1,11 +1,11 @@ # -# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 15:44:18 +# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 09:02:36 # # # Routines to be edited by the developer to provide validation for parameters # and provison of the control data for table(s) -# -use esmith::util; +# lcPackageName=json5_dict["PackageName"].lower(), + use esmith::HostsDB; use esmith::AccountsDB; use esmith::NetworksDB; diff --git a/Targets/CreateStarterWebsite/CreateStarterWebsite.pm b/Targets/CreateStarterWebsite/CreateStarterWebsite.pm index 6d78992..0176f84 100644 --- a/Targets/CreateStarterWebsite/CreateStarterWebsite.pm +++ b/Targets/CreateStarterWebsite/CreateStarterWebsite.pm @@ -1,6 +1,6 @@ package SrvMngr::Controller::CreateStarterWebsite; # -# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 08:38:32 +# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41 # #---------------------------------------------------------------------- # heading : Miscellaneous diff --git a/Targets/CreateStarterWebsite/_csw_PARAMS.html.ep b/Targets/CreateStarterWebsite/_csw_PARAMS.html.ep index efd2151..2b2ae3a 100644 --- a/Targets/CreateStarterWebsite/_csw_PARAMS.html.ep +++ b/Targets/CreateStarterWebsite/_csw_PARAMS.html.ep @@ -1,5 +1,5 @@ %# -%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 09:09:54 +%# Generated by SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16 %#