'Function to club all the duplicate strings into one row
with ";" separated locations'

@staticmethod
def remove_duplicates(Strings):

    uniq = {}
    appname = current.request.application
    for (loc, data) in Strings:
        uniq[data] = ''
    for (loc, data) in Strings:
        loc = loc.split(appname, 1)[1]
        if (uniq[data] != ''):
            uniq[data] = ((uniq[data] + ';') + loc)
        else:
            uniq[data] = loc
    l = []
    lappend = l.append
    for data in uniq.keys():
        lappend((uniq[data], data))
    return l
