@treeio_login_required
def help_page(request, url='/', response_format='html'):
 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 = '<!-- 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)

@ treeio_login_required def help_page ( request , url = '/' , response_format = 'html' ) : 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 = '<!-- 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 )
returns a help page from evergreen .