# HG changeset patch # User Jeff Hammel # Date 1606251627 28800 # Node ID 394648c67478351dcb9e44892034d2cfbd8bc1db # Parent f7120eba68775d81dd45c97fd7bcdd2712f96b59 py3 diff -r f7120eba6877 -r 394648c67478 toolbox/dispatcher.py --- a/toolbox/dispatcher.py Tue Nov 24 12:58:36 2020 -0800 +++ b/toolbox/dispatcher.py Tue Nov 24 13:00:27 2020 -0800 @@ -5,17 +5,17 @@ import os -from handlers import CreateProjectView -from handlers import DeleteProjectHandler -from handlers import FieldView -from handlers import ProjectView -from handlers import QueryView -from handlers import TagsView -from handlers import AboutView -from handlers import NotFound +from .handlers import CreateProjectView +from .handlers import DeleteProjectHandler +from .handlers import FieldView +from .handlers import ProjectView +from .handlers import QueryView +from .handlers import TagsView +from .handlers import AboutView +from .handlers import NotFound -from model import models -from util import strsplit +from .model import models +from .util import strsplit from webob import Request, Response, exc here = os.path.dirname(os.path.abspath(__file__)) @@ -101,7 +101,7 @@ # get a request object request = Request(environ) - # get the path + # get the path path = request.path_info.strip('/').split('/') if path == ['']: path = []