deliverance.ruleset – rule/action container

Implements the <ruleset> handler.

Contents

Module Contents

class deliverance.ruleset.RuleSet(matchers, clientsides, rules_by_class, default_theme=None, source_location=None)

Represents <ruleset>, except for proxy/settings (which are handled elsewhere).

This is a container for rules/actions. It contains many <rule> objects.

Utility Functions

deliverance.ruleset.parse_meta_headers(body)

Returns a list of headers (in the form [(header_name, header_value)...] parsed from an HTML document, where the headers are in the format <meta http-equiv="header_name" content="header_value">