set self._extra before 'super'

This commit is contained in:
Emmanuel Garette 2014-02-04 21:55:57 +01:00
parent 98bd35ad36
commit 5febdf3a3f
1 changed files with 2 additions and 1 deletions

View File

@ -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):