pgcontents/checkpoints.py
def create_file_checkpoint(self, content, format, path):
        """Create a checkpoint of the current state of a file

        Returns a checkpoint_id for the new checkpoint.
        """
        try:
            b64_content = to_b64(content, format)
        except ValueError as e:
            self.do_400(str(e))
        with self.engine.begin() as db:
            return save_remote_checkpoint(
                db,
                self.user_id,
                path,
                b64_content,
                self.crypto.encrypt,
                self.max_file_size_bytes,
            )
def create_file_checkpoint(self, content, format, path):
        try:
            b64_content = to_b64(content, format)
        except ValueError as e:
            self.do_400(str(e))
        with self.engine.begin() as db:
            return save_remote_checkpoint(
                db,
                self.user_id,
                path,
                b64_content,
                self.crypto.encrypt,
                self.max_file_size_bytes,
            )
def create_file_checkpoint ( self , content , format , path ) : try : b64_content = to_b64 ( content , format ) except ValueError as e : self . do_400 ( str ( e ) ) with self . engine . begin ( ) as db : return save_remote_checkpoint ( db , self . user_id , path , b64_content , self . crypto . encrypt , self . max_file_size_bytes , )
Create a checkpoint of the current state of a file

        Returns a checkpoint_id for the new checkpoint.
Create a checkpoint of the current state of a file