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