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