(cls, user_id, restore_content, domain)
return restore
The method to create a new DemoUserRestore object
        ags:
            user_id: the id of the CommCareUser
            restore_content: a string or file-like object of user's restore XML
The method to create a new DemoUserRestore object
        ags:
            user_id: the id of the CommCareUser
            restore_content: a string or file-like object of user's restore XML
The method to create a new DemoUserRestore object ags : user_id : the id of the CommCareUser restore_content : a string or file - like object of user s restore XML
def create(cls, user_id, restore_content, domain):
        """
        The method to create a new DemoUserRestore object
        ags:
            user_id: the id of the CommCareUser
            restore_content: a string or file-like object of user's restore XML
        """
        restore = cls(
            demo_user_id=user_id,
            restore_comment="",
        )
        with AtomicBlobs(get_blob_db()) as db:
            restore._write_restore_blob(restore_content, db, domain)
            restore.save()
        return restore
def create ( cls , user_id , restore_content , domain ) : restore = cls ( demo_user_id = user_id , restore_comment = "" , ) with AtomicBlobs ( get_blob_db ( ) ) as db : restore . _write_restore_blob ( restore_content , db , domain ) restore . save ( ) return restore