def _filterDictToStr(self, filterDict):
values = []<EOL>for key, vals in filterDict.items():<EOL><INDENT>if key not in ('<STR_LIT>', '<STR_LIT:label>'):<EOL><INDENT>raise BadRequest('<STR_LIT>', key)<EOL><DEDENT>values.append('<STR_LIT>' % (key, '<STR_LIT>'.join(vals)))<EOL><DEDENT>return '<STR_LIT:|>'.join(values)<EOL>
Converts friend filters to a string representation for transport.