feature was removed, depend on latest release

agranig/2.004-ramoptimized
Lars Dieckow 12 years ago
parent 80a020c408
commit e861dcbe8f

@ -18,7 +18,7 @@ my $builder = Module::Build->new(
'Pod::Usage' => 0,
'Regexp::Common' => 0,
'Regexp::IPv6' => 0,
'Sipwise::Base' => 0,
'Sipwise::Base' => '1.002',
'Throwable::Error' => 0,
'XML::Simple' => 0,
},

@ -63,7 +63,7 @@ for my $db (qw(accounting billing carrier kamailio ngcp provisioning sipstats))
@pod = ("=encoding UTF-8\n\n", @pod, "=cut\n") if @pod;
return join '', @source, @pod;
},
moniker_map => λ{ $_[0] },
moniker_map => sub { $_[0] },
col_accessor_map => sub {
my ($column) = @_;
return $CLASS->can($column) ? "column_$column" : $column;

@ -104,7 +104,7 @@ method create_domain($data, $reseller_id?) {
message => "malformed domain '$data->{domain}' in request",
}) unless $self->validator->check_domain({domain => $data->{domain}});
# /FIXME
$self->txn_do(λ{
$self->txn_do(sub {
# just to verify the domain does not exist for the reseller
my $dbdom;
try {
@ -169,7 +169,7 @@ method delete_domain($data, $reseller_id) {
description => 'Client.Syntax.MalformedDomain',
message => "malformed domain '$data->{domain}' in request",
}) unless $self->validator->check_domain({domain => $data->{domain}});
$self->txn_do(λ{
$self->txn_do(sub {
my $remaining_resellers = $self->delete_domain($reseller_id, $data->{domain});
unless ($remaining_resellers) {
# just to verify the domain exists
@ -218,7 +218,7 @@ method delete_domain($data, $reseller_id) {
message => 'reseller_id empty in domain delete, still we have a persisting domain reseller.',
}) unless $reseller_id;
# Oooops! Breaks data encapsulation heinously! :o/
$self->storage->dbh_do(λ{
$self->storage->dbh_do(sub {
my (undef, $dbh, @bind) = @_;
$dbh->do(
'DELETE FROM provisioning.pvs

@ -52,7 +52,7 @@ method create_domain($data) {
}) unless $self->validator->check_domain({domain => $data->{domain}});
# /FIXME
$self->txn_do(λ{
$self->txn_do(sub {
# FIXME ack-basswards exception check: abused for control flow
eval {
$self->_get_domain_id($data->{domain});
@ -88,7 +88,7 @@ method update_domain($data) {
description => 'Client.Syntax.MalformedDomain',
message => "malformed domain '$data->{domain}' in request",
}) unless $self->validator->check_domain({domain => $data->{domain}});
$self->txn_do(λ{
$self->txn_do(sub {
my $domainid = $self->_get_domain_id($data->{domain});
});
return;
@ -103,7 +103,7 @@ method delete_domain($data) {
description => 'Client.Syntax.MalformedDomain',
message => "malformed domain '$data->{domain}' in request",
}) unless $self->validator->check_domain({domain => $data->{domain}});
$self->txn_do(λ{
$self->txn_do(sub {
my $domainid = $self->_get_domain_id($data->{domain});
$self->resultset('voip_domains')->search(
{},

Loading…
Cancel
Save