34
34
from ivle.webapp.base.views import BaseView
35
35
from ivle.webapp.base.plugins import ViewPlugin
37
44
# XXX: Writes to req directly. This is a direct port of the legacy version.
38
45
# This needs to be rewritten soon.
40
46
class FileserviceView(BaseView):
45
47
def authorize(self, req):
46
48
return req.user is not None
49
51
"""Handler for the File Services application."""
51
53
# If no path specified, default to the user's home directory
52
54
req.throw_redirect(req.make_path(os.path.join('fileservice',