mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 11:44:45 +08:00
17 lines
440 B
Python
17 lines
440 B
Python
# -*- 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
|