'returns the full address having the given firstbits.'

def q_addr(abe, page, chain):

    if (not abe.store.use_firstbits):
        raise PageNotFound()
    fb = wsgiref.util.shift_path_info(page['env'])
    if (fb is None):
        return 'Shows    the    address    identified    by    FIRSTBITS:    the    first    address    in    CHAIN    to    start    with    FIRSTBITS,    where    the    comparison    is    case-insensitive.\nSee    http://firstbits.com/.\nReturns    the    argument    if    none    matches.\n/chain/CHAIN/q/addr/FIRSTBITS\n/q/addr/FIRSTBITS\n'
    return '\n'.join(abe.store.firstbits_to_addresses(fb, chain_id=(chain and chain.id)))
