Commit 4d165022 authored by Serge S. Koval's avatar Serge S. Koval

Documentation fixes.

parent 9361fd15
......@@ -311,7 +311,12 @@ class Admin(object):
self._add_view_to_menu(view)
def _add_view_to_menu(self, view):
# Update menu
"""
Add view to the menu tree
`view`
View to add
"""
if view.category:
category = self._menu_categories.get(view.category)
......
......@@ -67,7 +67,7 @@ class FileAdmin(BaseView):
admin = Admin()
path = op.join(op.dirname(__file__), 'static')
admin.add_view(path, '/static/', name='Static Files')
admin.add_view(FileAdmin(path, '/static/', name='Static Files'))
admin.setup_app(app)
"""
......
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