rest/middleware/database.py
def process_response(self, req, resp, resource, req_succeeded):
        """Post-processing of the response (after routing).

        Args:
            req: Request object.
            resp: Response object.
            resource: Resource object to which the request was
                routed. May be None if no route was found
                for the request.
            req_succeeded: True if no exceptions were raised while
                the framework processed and routed the request;
                otherwise False.
        """
        if req_succeeded and not db.is_closed:
            db.close()
Post-processing of the response (after routing).

        Args:
            req: Request object.
            resp: Response object.
            resource: Resource object to which the request was
                routed. May be None if no route was found
                for the request.
            req_succeeded: True if no exceptions were raised while
                the framework processed and routed the request;
                otherwise False.
        
Post-processing of the response (after routing).
Post - processing of the response ( after routing ) .
def process_response(self, req, resp, resource, req_succeeded):
        if req_succeeded and not db.is_closed:
            db.close()
def process_response ( self , req , resp , resource , req_succeeded ) : if req_succeeded and not db . is_closed : db . close ( )
Post-processing of the response (after routing).
Post - processing of the response ( after routing ) .
"""Post-processing of the response (after routing).

        Args:
            req: Request object.
            resp: Response object.
            resource: Resource object to which the request was
                routed. May be None if no route was found
                for the request.
            req_succeeded: True if no exceptions were raised while
                the framework processed and routed the request;
                otherwise False.
        """
self
req
None
resp
None
resource
Resource object to which the request was
routed. May be None if no route was found
for the request.
Resource object to which the request was routed . May be None if no route was found for the request .
req_succeeded
True if no exceptions were raised while
the framework processed and routed the request;
otherwise False.
True if no exceptions were raised while the framework processed and routed the request ; otherwise False .