old_contents: # -*- coding: utf-8 -*-
  #
  #   dp for Tornado
  #     YoungYong Park (youngyongpark@gmail.com)
  #     2014.11.21
  #
  
  
  import tornado.escape
  
  
  def trim(c, t):
      return t.strip()
  
  def nl2br(c, t, escape=True):
      if not t:
          return ''
  
      t = tornado.escape.xhtml_escape(t) if escape else t
      return t.replace('\r\n', '<br />').replace('\r', '<br />').replace('\n', '<br />')
  
  def yyyymmdd(c, t, s='.'):
      return c.helper.datetime.yyyymmdd(s=s, d=t)
  
  def hhiiss(c, t, s=':'):
      return c.helper.datetime.hhiiss(s=s, d=t)
new_contents: # -*- coding: utf-8 -*-
  #
  #   dp for Tornado
  #     YoungYong Park (youngyongpark@gmail.com)
  #     2014.11.21
  #
  
  
  import tornado.escape
  
  
  def trim(c, t):
      return t.strip()
  
  
  def nl2br(c, t, escape=True):
      if not t:
          return ''
  
      t = tornado.escape.xhtml_escape(t) if escape else t
      return t.replace('\r\n', '<br />').replace('\r', '<br />').replace('\n', '<br />')
  
  
  def yyyymmdd(c, t, s='.'):
      return c.helper.datetime.yyyymmdd(s=s, d=t)
  
  
  def hhiiss(c, t, s=':'):
      return c.helper.datetime.hhiiss(s=s, d=t)
  
  
  def request_uri(c, s=False, d=' ', p='_'):
      return ('%s%s' % (d, p)).join(c.request.uri.split('/')).strip() if s else c.request.uri
subject: Add print request_uri helper.