nbgwas_rest/__init__.py
def delete(self, id):
        """
        Deletes task associated with {id} passed in
        """
        resp = flask.make_response()
        try:
            req_dir = get_delete_request_dir()
            if not os.path.isdir(req_dir):
                app.logger.debug('Creating directory: ' + req_dir)
                os.makedirs(req_dir, mode=0o755)

            cleanid = id.strip()
            if len(cleanid) > 40 or len(cleanid) == 0:
                resp.status_code = 400
                return resp

            with open(os.path.join(req_dir, cleanid), 'w') as f:
                f.write(request.remote_addr)
                f.flush()
            resp.status_code = 200
            return resp
        except Exception:
            app.logger.exception('Caught exception creating delete token')
        resp.status_code = 500
        return resp

        Deletes task associated with {id} passed in
        
Deletes task associated with {id} passed in
Deletes task associated with { id } passed in
def delete(self, id):
        resp = flask.make_response()
        try:
            req_dir = get_delete_request_dir()
            if not os.path.isdir(req_dir):
                app.logger.debug('Creating directory: ' + req_dir)
                os.makedirs(req_dir, mode=0o755)
            cleanid = id.strip()
            if len(cleanid) > 40 or len(cleanid) == 0:
                resp.status_code = 400
                return resp
            with open(os.path.join(req_dir, cleanid), 'w') as f:
                f.write(request.remote_addr)
                f.flush()
            resp.status_code = 200
            return resp
        except Exception:
            app.logger.exception('Caught exception creating delete token')
        resp.status_code = 500
        return resp
def delete ( self , id ) : resp = flask . make_response ( ) try : req_dir = get_delete_request_dir ( ) if not os . path . isdir ( req_dir ) : app . logger . debug ( 'Creating directory: ' + req_dir ) os . makedirs ( req_dir , mode = 0o755 ) cleanid = id . strip ( ) if len ( cleanid ) > 40 or len ( cleanid ) == 0 : resp . status_code = 400 return resp with open ( os . path . join ( req_dir , cleanid ) , 'w' ) as f : f . write ( request . remote_addr ) f . flush ( ) resp . status_code = 200 return resp except Exception : app . logger . exception ( 'Caught exception creating delete token' ) resp . status_code = 500 return resp
Deletes task associated with {id} passed in
Deletes task associated with { id } passed in
"""
        Deletes task associated with {id} passed in
        """
self
id