@treeio_login_required
def help_page(request, url='/', response_format='html'):
    "Returns a Help page from Evergreen"

    source = getattr(
        settings, 'HARDTREE_HELP_SOURCE', 'http://127.0.0.1:7000/help')

    if not url:
        url = '/'

    body = ''
    try:
        body = urllib2.urlopen(
            source + url + '?domain=' + RequestSite(request).domain).read()
    except:
        pass

    regexp = r"<!-- module_content_inner -->(?P<module_inner>.*?)<!-- /module_content_inner -->"
    blocks = re.finditer(regexp, body, re.DOTALL)
    for block in blocks:
        body = smart_unicode(block.group('module_inner').strip())

    return render_to_response('core/help_page', {'body': body},
                              context_instance=RequestContext(request),
                              response_format=response_format)


#
# AJAX lookups
#
dataset/ETHPy150Open treeio/treeio/treeio/core/views.py/help_page/original