def makefilter(list=[], seperator=';'):
    """makefilter([list,seperator]) --> filter pattern generated from a list
    returned filter is a string, with items seperated by seperator"""
    filter = ''
    for item in list:
        filter += '%s%s' % (str(item), str(seperator))
    return filter.rstrip(str(seperator))
