From 5febdf3a3ff76a7203d038041f64fd18f8b376a7 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 4 Feb 2014 21:55:57 +0100 Subject: [PATCH] set self._extra before 'super' --- tiramisu/option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiramisu/option.py b/tiramisu/option.py index 66f2a38..32465c2 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -893,6 +893,8 @@ class PortOption(Option): if extra['_max_value'] is None: raise ValueError(_('max value is empty')) + #FIXME avant le super ? + self._extra = extra super(PortOption, self).__init__(name, doc, default=default, default_multi=default_multi, callback=callback, @@ -903,7 +905,6 @@ class PortOption(Option): validator_params=validator_params, properties=properties, warnings_only=warnings_only) - self._extra = extra def _validate(self, value): if self._extra['_allow_range'] and ":" in str(value):