deliverance.rules – rules and actions

Represents individual actions (<append> etc) and the RuleSet that puts them together

Contents

Module Contents

class deliverance.rules.Rule(classes, actions, theme, match, suppress_standard, source_location)

This represents everything in a <rule></rule> section.

class deliverance.rules.RuleMatch(path=None, domain=None, request_header=None, response_header=None, environ=None, pyref=None, source_location=None, response_status=None)

Represents match rules in the <rule> element

class deliverance.rules.Replace(source_location, content, theme, if_content=None, content_href=None, move=True, nocontent=None, notheme=None, manytheme=None, manycontent=None, collapse_sources=False)

Implements the <replace> action

class deliverance.rules.Append(source_location, content, theme, if_content=None, content_href=None, move=True, nocontent=None, notheme=None, manytheme=None, manycontent=None, collapse_sources=False)

Implements the <append> action

class deliverance.rules.Prepend(source_location, content, theme, if_content=None, content_href=None, move=True, nocontent=None, notheme=None, manytheme=None, manycontent=None, collapse_sources=False)

Implements the <prepend> action

class deliverance.rules.Drop(source_location, content, theme, if_content=None, nocontent=None, notheme=None)

Implements the <drop> action

Abstract Classes

class deliverance.rules.AbstractAction

Abstract superclass for Actions (replace, etc)

class deliverance.rules.TransformAction(source_location, content, theme, if_content=None, content_href=None, move=True, nocontent=None, notheme=None, manytheme=None, manycontent=None, collapse_sources=False)

Abstract class for the rules that move from the content to the theme (replace, append, prepend)