Add use esmith::util::network into controler files
This commit is contained in:
parent
c00230a998
commit
5205daf7ed
@ -35,6 +35,7 @@ use SrvMngr qw(theme_list init_session);
|
||||
use Data::Dumper;
|
||||
|
||||
use esmith::util;
|
||||
use esmith::util::network ;
|
||||
use esmith::ConfigDB;
|
||||
use esmith::AccountsDB;
|
||||
use esmith::NetworksDB;
|
||||
|
@ -6,6 +6,7 @@
|
||||
# and provison of the control data for table(s)
|
||||
#
|
||||
use esmith::util;
|
||||
use esmith::util::network;
|
||||
use esmith::ConfigDB;
|
||||
use esmith::HostsDB;
|
||||
use esmith::AccountsDB;
|
||||
@ -61,12 +62,10 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||
<tal:block repeat="tablecontrol tablecontrols">
|
||||
sub get_${tablecontrol[0]} {
|
||||
# Return an array of hashes of the contents for each row and column for ${tablecontrol[0]}
|
||||
# default is a single row of strings "col1header-1, col2header-1, col3Header-1 etc"
|
||||
# Cols needed are:
|
||||
# Cols/fields in hash needed are:
|
||||
# <tal:block repeat="col tablecontrol[1]['columns']">${col}<tal:condition condition="not: repeat['col'].end">,
|
||||
# </tal:condition></tal:block>
|
||||
my $c = shift;
|
||||
my $control_data = $c->stash('${tablecontrol[0]}');
|
||||
my @ret = {};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user