corrections

This commit is contained in:
Emmanuel Garette 2014-01-16 09:28:10 +01:00
parent 36cd79058f
commit eabe3bc55f

View file

@ -1540,7 +1540,7 @@ class OptionDescription(BaseOption):
def impl_get_opt_by_id(self, opt_id):
try:
#FIXME
idx = self._cache_paths[0].index(opt_id)
#idx = self._cache_paths[0].index(opt_id)
return session.query(BaseOption).filter_by(id=opt_id).first()
except ValueError:
raise AttributeError(_('no id {0} found').format(opt_id))