pgcontents/pgmanager.py
def _save_notebook(self, db, model, path):
        """
        Save a notebook.

        Returns a validation message.
        """
        nb_contents = from_dict(model['content'])
        self.check_and_sign(nb_contents, path)
        save_file(
            db,
            self.user_id,
            path,
            writes_base64(nb_contents),
            self.crypto.encrypt,
            self.max_file_size_bytes,
        )
        # It's awkward that this writes to the model instead of returning.
        self.validate_notebook_model(model)
        return model.get('message')
def _save_notebook(self, db, model, path):
        nb_contents = from_dict(model['content'])
        self.check_and_sign(nb_contents, path)
        save_file(
            db,
            self.user_id,
            path,
            writes_base64(nb_contents),
            self.crypto.encrypt,
            self.max_file_size_bytes,
        )
        # It's awkward that this writes to the model instead of returning.
        self.validate_notebook_model(model)
        return model.get('message')
def _save_notebook ( self , db , model , path ) : nb_contents = from_dict ( model [ 'content' ] ) self . check_and_sign ( nb_contents , path ) save_file ( db , self . user_id , path , writes_base64 ( nb_contents ) , self . crypto . encrypt , self . max_file_size_bytes , ) # It's awkward that this writes to the model instead of returning. self . validate_notebook_model ( model ) return model . get ( 'message' )
Save a notebook.

        Returns a validation message.
Save a notebook .