mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
11 lines
312 B
Python
11 lines
312 B
Python
|
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
|