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

def rule_dialog::RuleDialog::_validate_get_failure (   self  )  [private]

Check whether the window state is a valid configuration.

Return None if it is valid.  Otherwise, return (message, notebook page
index or None, widget).

Reimplemented from dialog_base::DialogBase.

Definition at line 261 of file rule_dialog.py.

00261                                    :
        if (audit.AUDIT_ARCH not in self.excluded_fields and
            self.rule_arch_present.get_active()):
            try:
                util.parse_elf(self.rule_arch.child.get_text())
            except util.ParsingError, e:
                return (e.message, 0, self.rule_arch)
        if (audit.AUDIT_ARCH not in self.excluded_fields and
            self.rule_syscalls_not_all.get_active()):
            it = self.syscall_store.get_iter_first()
            while it is not None:
                name = self.syscall_store.get_value(it, 0)
                try:
                    util.parse_syscall(name, self.machine_id)
                except util.ParsingError, e:
                    self.syscalls_selection.select_iter(it)
                    return (e.message, 1, self.rule_syscalls)
                it = self.syscall_store.iter_next(it)
            if self.syscall_store.get_iter_first() is None:
                return (_('The system call list must not be empty'), 1,
                        self.rule_syscalls)
        return None

    def __update_fields_store_row(self, it):


Generated by  Doxygen 1.6.0   Back to index