corrections

This commit is contained in:
Emmanuel Garette 2014-01-16 09:28:10 +01:00
parent 36cd79058f
commit eabe3bc55f
1 changed files with 1 additions and 1 deletions

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