userfiles: make handler optional

This commit is contained in:
Jimmy Zelinskie 2016-04-15 13:51:54 -04:00
parent c7c52e6c74
commit 3d190b786f
3 changed files with 22 additions and 7 deletions

View file

@ -38,7 +38,8 @@ class LogArchive(object):
handler_name = 'logarchive_handlers'
log_archive = DelegateUserfiles(app, distributed_storage, location, path, handler_name)
log_archive = DelegateUserfiles(app, distributed_storage, location, path,
handler_name=handler_name)
app.add_url_rule('/logarchive/<file_id>',
view_func=LogArchiveHandlers.as_view(handler_name,