pgcontents/pgmanager.py
def _get_notebook(self, path, content, format):
        """
        Get a notebook from the database.
        """
        with self.engine.begin() as db:
            try:
                record = get_file(
                    db,
                    self.user_id,
                    path,
                    content,
                    self.crypto.decrypt,
                )
            except NoSuchFile:
                self.no_such_entity(path)

        return self._notebook_model_from_db(record, content)
def _get_notebook(self, path, content, format):
        with self.engine.begin() as db:
            try:
                record = get_file(
                    db,
                    self.user_id,
                    path,
                    content,
                    self.crypto.decrypt,
                )
            except NoSuchFile:
                self.no_such_entity(path)

        return self._notebook_model_from_db(record, content)
def _get_notebook ( self , path , content , format ) : with self . engine . begin ( ) as db : try : record = get_file ( db , self . user_id , path , content , self . crypto . decrypt , ) except NoSuchFile : self . no_such_entity ( path ) return self . _notebook_model_from_db ( record , content )
Get a notebook from the database.
Get a notebook from the database .