mirror of
https://gitlab.com/gnuwget/wget.git
synced 2026-01-31 08:37:20 +00:00
This is a squashed commit of the following from parallel-wget:ecd6977Refactor mainly the test cases classesd26c8ebCreate package test for test case classes507383dMove server classes to package server.protocol195393bCreate package conf where rules and hooks are put42e482aCreate package exc and move TestFailed to exc82f44f3Fix a typo in Test-Proto.py31e5f33From WgetTest.py move WgetFile to misc422171dCreate package misc, move ColourTerm.py to misc
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
|