##// END OF EJS Templates
Move the display Promise into a lower level method,...
Move the display Promise into a lower level method, into the create view method of the widget manager. This makes sure that views created by parent views are also accounted for in the state/display order guarantee.

File last commit:

r18657:66d44240
r18905:e8cb71d7
Show More
clientsidenbmanager.py
23 lines | 829 B | text/x-python | PythonLexer
"""A dummy contents manager for when the logic is done client side (in JavaScript)."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from .manager import ContentsManager
class ClientSideContentsManager(ContentsManager):
"""Dummy contents manager for use with client-side contents APIs like GDrive
The view handlers for notebooks and directories (/tree/) check with the
ContentsManager that their target exists so they can return 404 if not. Using
this class as the contents manager allows those pages to render without
checking something that the server doesn't know about.
"""
def path_exists(self, path):
return True
def is_hidden(self, path):
return False
def file_exists(self, name, path=''):
return True