def get_url_info(brain_or_object, endpoint=None):
<EOL>if endpoint is None:<EOL><INDENT>endpoint = get_endpoint(brain_or_object)<EOL><DEDENT>uid = get_uid(brain_or_object)<EOL>portal_type = get_portal_type(brain_or_object)<EOL>resource = portal_type_to_resource(portal_type)<EOL>return {<EOL>"<STR_LIT>": uid,<EOL>"<STR_LIT:url>": get_url(brain_or_object),<EOL>"<STR_LIT>": url_for(endpoint, resource=resource, uid=uid),<EOL>}<EOL>
Generate url information for the content object/catalog brain

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :param endpoint: The named URL endpoint for the root of the items
    :type endpoint: str/unicode
    :returns: URL information mapping
    :rtype: dict