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
3
Example 1
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()