def get_items_by_group(self, group, case_sensitive = True):
result = []<EOL>if not group:<EOL><INDENT>for item in self._items:<EOL><INDENT>if not item.groups:<EOL><INDENT>result.append(item)<EOL><DEDENT><DEDENT>return result<EOL><DEDENT>if not case_sensitive:<EOL><INDENT>group = group.lower()<EOL><DEDENT>for item in self._items:<EOL><INDENT>if group in item.groups:<EOL><INDENT>result.append(item)<EOL><DEDENT>elif not case_sensitive and group in [g.lower() for g<EOL>in item.groups]:<EOL><INDENT>result.append(item)<EOL><DEDENT><DEDENT>return result<EOL>
Return a list of items within a given group.

:Parameters:
    - `name`: name to look-up
    - `case_sensitive`: if `False` the matching will be case
      insensitive.
:Types:
    - `name`: `unicode`
    - `case_sensitive`: `bool`

:Returntype: `list` of `RosterItem`