From d5a84bb8a49d4e3d1eb64acb5edf7cec488dc91a Mon Sep 17 00:00:00 2001 From: jhemmelg Date: Fri, 11 Jul 2014 17:44:10 -0500 Subject: [PATCH] Initial interface for javascript contentmanagers contentmanager.js is going to be a js proxy for the current filenbmanager.py. This will allow a contentmanager for Google Drive to be created. --- IPython/html/static/base/js/contentmanager.js | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 IPython/html/static/base/js/contentmanager.js diff --git a/IPython/html/static/base/js/contentmanager.js b/IPython/html/static/base/js/contentmanager.js new file mode 100644 index 000000000..61762f586 --- /dev/null +++ b/IPython/html/static/base/js/contentmanager.js @@ -0,0 +1,42 @@ +// Copyright (c) IPython Development Team. +// Distributed under the terms of the Modified BSD License. + +define([ + 'base/js/namespace', + 'jquery', +], function(IPython, $) { + var ContentManager = function() { + // Constructor + // + // A contentmanager handles passing file operations + // to the back-end. This includes checkpointing + // with the normal file operations. + // + // Parameters: + // None + this.version = 0.1; + } + + ContentManager.prototype.new_notebook = function() { + } + + ContentManager.prototype.delete_notebook = function(name, path) { + } + + ContentManager.prototype.rename_notebook = function(new_name, new_path, old_name, old_path) { + } + + ContentManager.prototype.save_notebook = function(notebook, extra_settings) { + } + + ContentManager.prototype.save_checkpoint = function() { + } + + ContentManager.prototype.restore_checkpoint = function(id) { + } + + ContentManager.prototype.list_checkpoints = function() { + } + + return ContentManager; +});