set self._extra before 'super'
This commit is contained in:
parent
98bd35ad36
commit
5febdf3a3f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue