

@expose('/reject_request', methods=['GET', 'POST'])
def reject_request(self):
    request_id = unicode(request.form['request_id'])
    req = self.session.query(RequestPermissionLT).filter_by(id=request_id).first()
    perm = PermissionToLt(lt=req.lt, laboratory=req.laboratory, configuration='', local_identifier=self.local_identifier)
    self.session.add(perm)
    self.session.delete(req)
    self.session.commit()
    return redirect(url_for('.index_view'))

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py LabRequestsPanel.reject_request/VarMisuse@80/110 `req`->`self`