title: Call a python function from template odoo 8
body: <p>There is a function in my controller class, i need to call that function in one of my template. i tried this:</p>
  
  <p><strong>controller.py</strong></p>
  
  <pre><code>class MyController(http.Controller):
      @http.route(["/myPath/"], type='http', auth="public", website=True)
      def myfucntion(self):
          -- something ---
      def thisMethod(self):
          I need to call this methd in remplate
  </code></pre>
  
  <p><strong>template.xml</strong></p>
  
  <pre><code>&lt;t t-esc="thisMethod()"/&gt;
  </code></pre>
  
  <p>Getting error:</p>
  
  <pre><code> QWebException: "'NoneType' object is not callable" while evaluating
  </code></pre>
  
  <p><code>thiMethod()</code></p>
  
  <p>How can call this method?</p>