web.webapi.NotFound

Here are the examples of the python api web.webapi.NotFound taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: clam Source File: filetest.py
Function: get
    def GET(self, path):
        if os.path.isfile(ROOT + path): 
            for line in open(ROOT+path,'r'):
                yield line
        elif os.path.isdir(ROOT + path): 
            for f in glob.glob(ROOT + path + "/*"):
                yield os.path.basename(f)                
        else:
            raise web.webapi.NotFound()