web/application.py
changeset 2788 8d3dbe577d3a
parent 2706 09baf5175196
child 2867 e8581a4f1bae
equal deleted inserted replaced
2787:ece5bbed3cd2 2788:8d3dbe577d3a
   287                 except Exception:
   287                 except Exception:
   288                     self.exception('error while logging queries')
   288                     self.exception('error while logging queries')
   289             finally:
   289             finally:
   290                 self._logfile_lock.release()
   290                 self._logfile_lock.release()
   291 
   291 
   292     @deprecated("use vreg.select('controllers', ...)")
   292     @deprecated("[3.4] use vreg['controllers'].select(...)")
   293     def select_controller(self, oid, req):
   293     def select_controller(self, oid, req):
   294         try:
   294         try:
   295             return self.vreg['controllers'].select(oid, req=req, appli=self)
   295             return self.vreg['controllers'].select(oid, req=req, appli=self)
   296         except NoSelectableObject:
   296         except NoSelectableObject:
   297             raise Unauthorized(req._('not authorized'))
   297             raise Unauthorized(req._('not authorized'))