def complete_pool_name(arg):
search_string = '<STR_LIT>'<EOL>if arg is not None:<EOL><INDENT>search_string += arg<EOL><DEDENT>res = Pool.search({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:name>',<EOL>'<STR_LIT>': search_string<EOL>})<EOL>ret = []<EOL>for p in res['<STR_LIT:result>']:<EOL><INDENT>ret.append(p.name)<EOL><DEDENT>return ret<EOL>
Returns list of matching pool names