#NEWLINE# def _set_from_kwargs_or_workflow_type( self , kwargs , local_key , workflow_type_key = None ) : #NEWLINE# #INDENT# if ( workflow_type_key is None ) : #NEWLINE# #INDENT# workflow_type_key = ( 'default_' + local_key ) #NEWLINE# #UNINDENT# value = kwargs . get ( local_key ) #NEWLINE# if ( ( not value ) and hasattr ( self . workflow_type , workflow_type_key ) ) : #NEWLINE# #INDENT# value = getattr ( self . workflow_type , value ) #NEWLINE# #UNINDENT# if ( not value ) : #NEWLINE# #INDENT# raise SWFDefaultUndefinedFault ( local_key ) #NEWLINE# #UNINDENT# setattr ( self , local_key , value )