Logo Search packages:      
Sourcecode: audit version File versions  Download package

def global_dialog::GlobalDialog::_load_config (   self,
  config 
) [private]

Modify dialog controls to reflect config.

Definition at line 184 of file global_dialog.py.

00184                                   :
        '''Modify dialog controls to reflect config.'''
        auditd = config.auditd
        rules = config.rules

        self.backlog_max.set_value(rules.backlog_limit)
        self.rate_limit_enabled.set_active(rules.rate_limit !=
                                           AR.RATE_LIMIT_DISABLED)
        self.rate_limit.set_value(rules.rate_limit)
        self._radio_set(rules.failure_handling, self.__kernel_fail_map)

        self.priority_boost.set_value(auditd.priority_boost)
        self.action_mail_acct.set_text(auditd.action_mail_acct)
        self.dispatcher_enabled.set_active(auditd.dispatcher is not None)
        _set_optional_text(self.dispatcher, auditd.dispatcher)
        self._radio_set(auditd.disp_qos, self.__disp_qos_map)

        self.log_format_raw.set_active(auditd.log_format == AC.FORMAT_RAW)
        self.log_file.set_text(auditd.log_file)
        self.__log_file_changed()
        self.flush_none.set_active(auditd.flush == AC.FLUSH_NONE)
        self.flush_incremental.set_active(auditd.flush != AC.FLUSH_NONE)
        if auditd.flush == AC.FLUSH_INCREMENTAL:
            freq = auditd.freq
        else:
            freq = 1
        self.freq.set_value(freq)
        self.flush_not_sync.set_active(auditd.flush == AC.FLUSH_DATA)
        self.max_log_file.set_value(auditd.max_log_file)
        self._radio_set(auditd.max_log_file_action, self.__max_log_file_map)
        self.max_log_file_rotate.set_active(auditd.max_log_file_action ==
                                            AC.SIZE_ROTATE)
        self.num_logs.set_value(auditd.num_logs)

        self.space_left.set_value(auditd.space_left)
        self._radio_set(auditd.space_left_action, self.__space_left_map)
        _set_optional_text(self.space_left_exe, auditd.space_left_exe)
        self.admin_space_left.set_value(auditd.admin_space_left)
        self._radio_set(auditd.admin_space_left_action,
                        self.__admin_space_left_map)
        _set_optional_text(self.admin_space_left_exe,
                           auditd.admin_space_left_exe)

        self._radio_set(auditd.disk_full_action, self.__disk_full_map)
        _set_optional_text(self.disk_full_exe, auditd.disk_full_exe)
        self._radio_set(auditd.disk_error_action, self.__disk_error_map)
        _set_optional_text(self.disk_error_exe, auditd.disk_error_exe)

    def _save_config(self, config):


Generated by  Doxygen 1.6.0   Back to index