#NEWLINE# def validate_steps( self , request , workflow , start , end ) : #NEWLINE# #INDENT# 'Validates the workflow steps from ``start`` to ``end``, inclusive.\n\n        Returns a dict describing the validation state of the workflow.\n        ' #NEWLINE# errors = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for step in workflow . steps [ start : ( end + 1 ) ] : #NEWLINE# #INDENT# if ( not step . action . is_valid ( ) ) : #NEWLINE# #INDENT# errors [ step . slug ] = dict ( ( ( field , [ unicode ( error ) for error in errors ] ) for ( field , errors ) in six . iteritems ( step . action . errors ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# 'has_errors' : bool ( errors ) , #NEWLINE# 'workflow_slug' : workflow . slug , #NEWLINE# 'errors' : errors , #NEWLINE# #UNINDENT# }