@staticmethod<EOL><INDENT>def composite_join(separator, items):<DEDENT>
output = Composite()<EOL>first_item = True<EOL>for item in items:<EOL><INDENT>if not item:<EOL><INDENT>continue<EOL><DEDENT>if first_item:<EOL><INDENT>first_item = False<EOL><DEDENT>else:<EOL><INDENT>output.append(separator)<EOL><DEDENT>output.append(item)<EOL><DEDENT>return output<EOL>
Join a list of items with a separator.
This is used in joining strings, responses and Composites.
The output will be a Composite.