You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/knowit/rule.py

18 lines
440 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .core import Reportable
class Rule(Reportable):
"""Rule abstract class."""
def __init__(self, name, override=False, **kwargs):
"""Constructor."""
super(Rule, self).__init__(name, **kwargs)
self.override = override
def execute(self, props, pv_props, context):
"""How to execute a rule."""
raise NotImplementedError