~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/serve/__init__.py

Fix public mode serve authorization to traverse to the deepest directory,
not just the previous path segment. Otherwise PATH_INFO can't be used in
public mode - it takes PATH_INFO to be part of the authorization path

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 
142
142
class PublicServeView(ServeView):
143
143
    def __init__(self, req, path):
144
 
        req.path = path
 
144
        req.path = path # XXX: Needed because we don't have an app prefix.
145
145
        super(PublicServeView, self).__init__(req, path)
146
146
 
147
147
    def authorize(self, req):