From ade35af9d6413d849ea0702d76a54fd3d202e7b8 2014-12-08 11:21:23 From: Bussonnier Matthias Date: 2014-12-08 11:21:23 Subject: [PATCH] remove client side manager, will be shipped with jupyterdrive --- diff --git a/IPython/html/services/contents/clientsidenbmanager.py b/IPython/html/services/contents/clientsidenbmanager.py deleted file mode 100644 index b1c8dcc..0000000 --- a/IPython/html/services/contents/clientsidenbmanager.py +++ /dev/null @@ -1,23 +0,0 @@ -"""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 dir_exists(self, path): - return True - - def is_hidden(self, path): - return False - - def file_exists(self, name, path=''): - return True