userfiles: make handler optional
This commit is contained in:
parent
c7c52e6c74
commit
3d190b786f
3 changed files with 22 additions and 7 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue