##// END OF EJS Templates
Prefer new style of config passing, parent=self (replaces config=self.config)
Jonathan Frederic -
Show More
@@ -35,7 +35,9 b' class ConfigurableTransformer(GlobalConfigurable):'
35 or __call__ if you prefer your own logic. See corresponding docstring for informations.
35 or __call__ if you prefer your own logic. See corresponding docstring for informations.
36 """
36 """
37
37
38 def __init__(self, config=None, **kw):
38 enabled = Bool(False, config=True)
39
40 def __init__(self, **kw):
39 """
41 """
40 Public constructor
42 Public constructor
41
43
@@ -47,7 +49,7 b' class ConfigurableTransformer(GlobalConfigurable):'
47 Additional arguments
49 Additional arguments
48 """
50 """
49
51
50 super(ConfigurableTransformer, self).__init__(config=config, **kw)
52 super(ConfigurableTransformer, self).__init__(**kw)
51
53
52
54
53 def __call__(self, nb, resources):
55 def __call__(self, nb, resources):
@@ -33,5 +33,5 b' class GlobalConfigurable(Configurable):'
33 """
33 """
34 )
34 )
35
35
36 def __init__(self, config=None, **kw):
36 def __init__(self, **kw):
37 super(GlobalConfigurable, self).__init__( config=config, **kw)
37 super(GlobalConfigurable, self).__init__(**kw)
General Comments 0
You need to be logged in to leave comments. Login now