~ubuntu-branches/ubuntu/lucid/ebox/lucid

« back to all changes in this revision

Viewing changes to src/EBox/Logs/Model/ConfigureLogDataTable.pm

  • Committer: Bazaar Package Importer
  • Author(s): Javier Uruen Val, Javier Uruen Val
  • Date: 2010-02-16 22:12:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216221252-4oacjm2luoy5a3l6
Tags: 1.5-0ubuntu1
[Javier Uruen Val]
* New usptream release (LP: #521799)
* Drop debian/patches as upstream already ships them
* Drop simple-patchsys
* debian/control
  - Update description
  - Add dependency on: anacron, libstring-shellquote-perl
  - bump Standards-version to 3.8.4. No changes required.
* Add debian/ebox.cron.daily
* debian/ebox.postinst
  - Add new events SQL table
  - Add new sysinfo_disk_usage SQL table
* debian/watch: fix URL

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
# Core modules
50
50
use Error qw(:try);
 
51
use List::Util;
51
52
 
52
53
use base 'EBox::Model::DataTable';
53
54
 
180
181
 
181
182
  my $logs = EBox::Global->modInstance('logs');
182
183
  my $tables = $logs->getAllTables();
 
184
  my $index = List::Util::first { $tables->{$_}->{helper}->name() eq $domain }
 
185
      keys %{ $tables };
183
186
 
184
 
  unless (exists $tables->{$domain}) {
 
187
  if ($index) {
 
188
      $tables->{$index}->{helper}->enableLog($enabled);
 
189
  } else {
185
190
      EBox::warn("Domain: $domain does not exist in logs");
186
191
  }
187
 
 
188
 
 
189
 
  my $helper = $tables->{$domain}->{'helper'};
190
 
  $helper->enableLog($enabled);
191
 
 
192
192
}
193
193
 
194
194
# Group: Callback functions