Table of Contents

Module: Rule daxfi/Rule.py

Rule class (daxfi package).

The representation of a firewall's rule.

Copyright 2001 Davide Alberani <alberanid@mail.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Imported modules   
import StringIO
import copy
from daxfi import DTD_NAME, DaxfiError, sl_print_error, xml_commands, StringTypes
import types
from xml.dom import Node, ext
from xml.dom.NodeFilter import NodeFilter
from xml.dom.NodeIterator import NodeIterator
Functions   
_compare_attrs
_compare_children
compare_dom
flat_print_opt
  _compare_attrs 
_compare_attrs ( a1,  a2 )

Compare two lists of attributes.

  _compare_children 
_compare_children ( c1,  c2 )

Compare two list of children nodes.

  compare_dom 
compare_dom ( a,  b )

Compare two DOMs.

Given two DOMs, return 0 if they are equals.

  flat_print_opt 
flat_print_opt ( opt )

Return a string that is a space sparated list of the attribute values in the given XML.

Classes   
RuleBase

Class that define a firewall rule.

RuleConverterError

Exception raised when an error occurs in a RuleConverter object.

_RuleConverter

A rule conversion object.


Table of Contents

This document was automatically generated on Sat Sep 1 13:50:21 2001 by HappyDoc version r1_5