#NEWLINE# @ staticmethod #NEWLINE# def from_spec( spec , parent ) : #NEWLINE# #INDENT# ( predicate_field_name , conditions ) = spec [ 1 : ] #NEWLINE# field = BreadConditional ( predicate_field_name , parent ) #NEWLINE# for ( predicate_value , condition ) in list ( conditions . items ( ) ) : #NEWLINE# #INDENT# condition_struct = build_struct ( condition ) #NEWLINE# field . _add_condition ( predicate_value , condition_struct ) #NEWLINE# #UNINDENT# return field