Commit db3e7115 authored by Tom Kedem's avatar Tom Kedem

backward compatibility for FileAdmin index view.

parent 64b90fad
import warnings
from datetime import datetime
import os
import os.path as op
......@@ -696,6 +697,12 @@ class BaseFileAdmin(BaseView, ActionsMixin):
breadcrumbs.append((n, self._separator.join(accumulator)))
return breadcrumbs
@expose('/')
@expose('/b/<path:path>')
def index(self, path=None):
warnings.warn('deprecated: use index_view instead.', DeprecationWarning)
return redirect(self.get_url('.index_view', path=path))
@expose('/')
@expose('/b/<path:path>')
def index_view(self, path=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment