'Called by org_site_onaccept'

@staticmethod
def getCodeList(code, wildcard_posn=[]):

    temp_code = ''
    for posn in range(len(code)):
        if (posn in wildcard_posn):
            temp_code += '%'
        else:
            temp_code += code[posn]
    db = current.db
    site_table = db.org_site
    query = site_table.code.like(temp_code)
    rows = db(query).select(site_table.id, site_table.code)
    codeList = []
    for record in rows:
        codeList.append(record.code)
    return codeList
