#102 Add support of rules with side effects

This commit is contained in:
nvbn
2015-05-01 04:39:37 +02:00
parent b928a59672
commit b985dfbffc
6 changed files with 49 additions and 21 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ from collections import namedtuple
Command = namedtuple('Command', ('script', 'stdout', 'stderr'))
Rule = namedtuple('Rule', ('name', 'match', 'get_new_command',
'enabled_by_default'))
'enabled_by_default', 'side_effect'))
class RulesNamesList(list):
"""Wrapper a top of list for string rules names."""
"""Wrapper a top of list for storing rules names."""
def __contains__(self, item):
return super(RulesNamesList, self).__contains__(item.name)