diff --git a/Targets/Nfsshare-Custom.pm.new b/Targets/Nfsshare-Custom.pm.new index 3da8bda..76d7f77 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-29 11:35 +# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-09-03 13:54 # use esmith::util; diff --git a/Targets/Nfsshare.pm b/Targets/Nfsshare.pm index a594087..756fced 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-29 11:35 +# Generated by version:SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-09-03 13:54 # #---------------------------------------------------------------------- # heading : Network @@ -78,7 +78,7 @@ sub main { # and table control fields - $c->stash(ibays=>get_ibays($c)); + $c->stash(ibays=>$c->get_ibays()); $c->stash( @@ -141,13 +141,13 @@ sub do_update { if ($trt eq 'PARAMS'){ #Validate form parameters for panel PARAMS - $ret = validate_PARAMS($c,\%nfs_data); + $ret = $c->validate_PARAMS(\%nfs_data); $thispanel = 'PARAMS'; } if ($trt eq 'TABLE'){ #Validate form parameters for panel TABLE - $ret = validate_TABLE($c,\%nfs_data); + $ret = $c->validate_TABLE(\%nfs_data); $thispanel = 'TABLE'; } @@ -161,7 +161,7 @@ sub do_update { if ($trt eq 'PARAMS'){ #do whatever is required ... - $ret = perform_PARAMS($c,\%nfs_data); + $ret = $c->perform_PARAMS(\%nfs_data); if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret)); @@ -173,7 +173,7 @@ sub do_update { if ($trt eq 'TABLE'){ #do whatever is required ... - $ret = perform_TABLE($c,\%nfs_data); + $ret = $c->perform_TABLE(\%nfs_data); if ($ret ne "ok") { # return to the panel with error message $c->stash(error => $c->l($ret)); @@ -241,12 +241,12 @@ sub do_display { if ($trt eq 'PARAMS'){ #Validate form parameters for panel PARAMS - %selectedrow = get_selected_PARAMS($c,$nfs_data{'Selected'},$is_new_record); + %selectedrow = $c->get_selected_PARAMS($nfs_data{'Selected'},$is_new_record); } if ($trt eq 'TABLE'){ #Validate form parameters for panel TABLE - %selectedrow = get_selected_TABLE($c,$nfs_data{'Selected'},$is_new_record); + %selectedrow = $c->get_selected_TABLE($nfs_data{'Selected'},$is_new_record); } diff --git a/Targets/_nfs_PARAMS.html.ep b/Targets/_nfs_PARAMS.html.ep index 15da969..9d33b78 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-29 11:35 +%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-09-03 13:54 %#