| 1 |
from conf import rule |
| 2 |
|
| 3 |
|
| 4 |
@rule(alias='SampleRuleAlias') |
| 5 |
class SampleRule: |
| 6 |
def __init__(self, rule): |
| 7 |
# do rule initialization here |
| 8 |
# you may also need to implement a method the same name of this |
| 9 |
# class in server/protocol/protocol_server.py to apply this rule. |
| 10 |
self.rule = rule |