Remove validator container, allow direct setting of options
This commit is contained in:
parent
10b3657ffb
commit
7ae790a12f
5 changed files with 102 additions and 67 deletions
|
|
@ -76,15 +76,6 @@ class Container(object):
|
|||
return list(self.loaded_data.values())
|
||||
|
||||
|
||||
class ValidatorContainer(Container):
|
||||
"""
|
||||
Loads and stores the final list of VALIDATOR FUNCTIONS.
|
||||
|
||||
Can access these as properties or dictionary-contents.
|
||||
"""
|
||||
storage_modules = settings.VALIDATOR_FUNC_MODULES
|
||||
|
||||
|
||||
class OptionContainer(Container):
|
||||
"""
|
||||
Loads and stores the final list of OPTION CLASSES.
|
||||
|
|
@ -203,5 +194,4 @@ class GlobalScriptContainer(Container):
|
|||
# Create all singletons
|
||||
|
||||
GLOBAL_SCRIPTS = GlobalScriptContainer()
|
||||
VALIDATOR_FUNCS = ValidatorContainer()
|
||||
OPTION_CLASSES = OptionContainer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue