(self, pillow_class, **options)
More targeted pillow checkpoint reset system - must specify the pillow class_name to reset the checkpoint
More targeted pillow checkpoint reset system - must specify the pillow class_name to reset the checkpoint
More targeted pillow checkpoint reset system - must specify the pillow class_name to reset the checkpoint
def handle(self, pillow_class, **options):
        """
        More targeted pillow checkpoint reset system - must specify the pillow class_name to reset the checkpoint
        """

        pillow_to_use = get_pillow_by_name(pillow_class)
        if not pillow_to_use:
            print("")
            print("\n\tPillow class [%s] not in configuration, what are you trying to do?\n" % pillow_class)
            sys.exit()

        if not options.get('interactive'):
            confirm = input("""
            You have requested to reset the checkpoints for the pillow [%s]. This is an irreversible
            operation, and may take a long time, and cause extraneous updates to the requisite
            consumers of the _changes feeds  Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: """ % pillow_class)
        else:
            confirm = 'yes'

        if confirm != 'yes':
            print("Reset cancelled.")
            return

        print("Resetting checkpoint for %s" % pillow_to_use.checkpoint.checkpoint_id)
        print("\tOld checkpoint: %s" % pillow_to_use.get_checkpoint().wrapped_sequence)
        pillow_to_use.checkpoint.reset()
        print("\n\tNew checkpoint reset to zero")
def handle ( self , pillow_class , * * options ) : pillow_to_use = get_pillow_by_name ( pillow_class ) if not pillow_to_use : print ( "" ) print ( "\n\tPillow class [%s] not in configuration, what are you trying to do?\n" % pillow_class ) sys . exit ( ) if not options . get ( 'interactive' ) : confirm = input ( """
            You have requested to reset the checkpoints for the pillow [%s]. This is an irreversible
            operation, and may take a long time, and cause extraneous updates to the requisite
            consumers of the _changes feeds  Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: """ % pillow_class ) else : confirm = 'yes' if confirm != 'yes' : print ( "Reset cancelled." ) return print ( "Resetting checkpoint for %s" % pillow_to_use . checkpoint . checkpoint_id ) print ( "\tOld checkpoint: %s" % pillow_to_use . get_checkpoint ( ) . wrapped_sequence ) pillow_to_use . checkpoint . reset ( ) print ( "\n\tNew checkpoint reset to zero" )