Move rule-related code to Rule

This commit is contained in:
nvbn
2015-09-08 14:18:11 +03:00
parent bf80d97062
commit 4a27595e97
7 changed files with 185 additions and 156 deletions
+9 -1
View File
@@ -2,7 +2,15 @@ from imp import load_source
import os
import sys
from six import text_type
from .types import Settings
class Settings(dict):
def __getattr__(self, item):
return self.get(item)
def __setattr__(self, key, value):
self[key] = value
ALL_ENABLED = object()
DEFAULT_RULES = [ALL_ENABLED]