#NEWLINE# def get_entry_point( self ) : #NEWLINE# #INDENT# 'Returns the slug of the step which the workflow should begin on.\n\n        This method takes into account both already-available data and errors\n        within the steps.\n        ' #NEWLINE# if self . entry_point : #NEWLINE# #INDENT# if self . get_step ( self . entry_point ) : #NEWLINE# #INDENT# return self . entry_point #NEWLINE# #UNINDENT# #UNINDENT# for step in self . steps : #NEWLINE# #INDENT# if step . has_errors : #NEWLINE# #INDENT# return step . slug #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# step . _verify_contributions ( self . context ) #NEWLINE# #UNINDENT# except exceptions . WorkflowError : #NEWLINE# #INDENT# return step . slug #NEWLINE# #UNINDENT# #UNINDENT# return self . steps [ 0 ] . slug