From 07f7954a5a2c51aa9243ca367d7630a5882f05c5 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Thu, 20 Jun 2024 17:29:00 +0100 Subject: [PATCH] Fix up lex files to show in generated app --- Targets/Nfsshare-Custom.pm.new | 2 +- Targets/Nfsshare.pm | 12 +++---- Targets/_nfs_PARAMS.html.ep | 2 +- Targets/_nfs_TABLE.html.ep | 2 +- Targets/nfsshare.html.ep | 3 +- Targets/nfsshare_bg.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_da.lex | 56 +++++++++++++++---------------- Targets/nfsshare_de.lex | 56 +++++++++++++++---------------- Targets/nfsshare_el.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_en.lex | 44 ++++++++++++------------- Targets/nfsshare_es.lex | 56 +++++++++++++++---------------- Targets/nfsshare_et.lex | 56 +++++++++++++++---------------- Targets/nfsshare_fr.lex | 56 +++++++++++++++---------------- Targets/nfsshare_he.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_hu.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_id.lex | 56 +++++++++++++++---------------- Targets/nfsshare_it.lex | 56 +++++++++++++++---------------- Targets/nfsshare_ja.lex | 56 +++++++++++++++---------------- Targets/nfsshare_nb.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_nl.lex | 56 +++++++++++++++---------------- Targets/nfsshare_pl.lex | 56 +++++++++++++++---------------- Targets/nfsshare_pt-br.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_pt.lex | 56 +++++++++++++++---------------- Targets/nfsshare_ro.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_ru.lex | 56 +++++++++++++++---------------- Targets/nfsshare_sl.lex | 56 +++++++++++++++---------------- Targets/nfsshare_sv.lex | 60 +++++++++++++++++----------------- Targets/nfsshare_th.lex | 56 +++++++++++++++---------------- Targets/nfsshare_tr.lex | 56 +++++++++++++++---------------- Targets/nfsshare_zh-cn.lex | 58 ++++++++++++++++---------------- Targets/nfsshare_zh-tw.lex | 59 +++++++++++++++++---------------- sm2gen.py | 35 +++++++++++++------- 32 files changed, 773 insertions(+), 750 deletions(-) diff --git a/Targets/Nfsshare-Custom.pm.new b/Targets/Nfsshare-Custom.pm.new index 7b4d502..d5a518f 100644 --- a/Targets/Nfsshare-Custom.pm.new +++ b/Targets/Nfsshare-Custom.pm.new @@ -2,7 +2,7 @@ # Routines to be edited by the developer to provide validation for parameters # and provison of the control data for table(s) # -# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-13 15:12 +# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-20 16:05 # use esmith::util; diff --git a/Targets/Nfsshare.pm b/Targets/Nfsshare.pm index b67cda3..b7f5cb0 100644 --- a/Targets/Nfsshare.pm +++ b/Targets/Nfsshare.pm @@ -1,6 +1,6 @@ package SrvMngr::Controller::Nfsshare; # -# Generated by version:SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-13 15:12 +# Generated by version:SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-20 16:05 # #---------------------------------------------------------------------- # heading : Network @@ -155,7 +155,7 @@ sub do_update { if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret)); - $c->render("Nfsshare"); + $c->render("nfsshare"); } else { #Do whatever is needed, including writing values to the DB @@ -165,7 +165,7 @@ sub do_update { if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret)); - $c->render("Nfsshare"); + $c->render("nfsshare"); } else { $c->stash( success => $c->l('nfs_PARAMS_panel_action_was_successful')); #A bit bland - edit it in the lex file } @@ -177,7 +177,7 @@ sub do_update { if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret)); - $c->render("Nfsshare"); + $c->render("nfsshare"); } else { $c->stash( success => $c->l('nfs_TABLE_panel_action_was_successful')); #A bit bland - edit it in the lex file } @@ -196,7 +196,7 @@ sub do_update { } else { $nfs_data{'trt'} = 'none'; } - $c->render("Nfsshare"); + $c->render("nfsshare"); } } @@ -262,7 +262,7 @@ sub do_display { title => $title, nfs_data => \%nfs_data ); - $c->render("Nfsshare"); + $c->render("nfsshare"); } 1; diff --git a/Targets/_nfs_PARAMS.html.ep b/Targets/_nfs_PARAMS.html.ep index 664a10c..d985fe4 100644 --- a/Targets/_nfs_PARAMS.html.ep +++ b/Targets/_nfs_PARAMS.html.ep @@ -1,5 +1,5 @@ %# -%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-13 15:12 +%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-06-20 16:05 %#