Adding docstring to NotebookHandler.get.

This commit is contained in:
Brian E. Granger 2013-10-09 14:50:54 -07:00 committed by MinRK
parent 6017f5d0ef
commit 59901ce88c

View File

@ -49,13 +49,11 @@ class NotebookHandler(IPythonHandler):
@web.authenticated
@json_errors
def get(self, path='', name=None):
"""Return a Notebook or list of notebooks.
* GET with path and no notebook name lists notebooks in a directory
* GET with path and notebook name returns notebook JSON
"""
GET with path and no notebook lists notebooks in a directory
GET with path and notebook name
GET get checks if a notebook is not named, an returns a list of notebooks
in the notebook path given. If a name is given, return
the notebook representation"""
nbm = self.notebook_manager
# Check to see if a notebook name was given
if name is None: