title: How to Pass the arguments inside http.Controller classes in odoo 8
body: <p>I am trying to pass the input values to action_button_confirm which is confirm onchange of sale order.</p>
  
  <pre><code>@http.route('/approve/&lt;path:token&gt;', type='http', auth='none')
  def sale_order(self, token, **kwargs):
      dbname = request.session._db
      registry = openerp.modules.registry.Registry(dbname)
      sale_id = http.request.env['sale.order'].sudo().search([('access_token', '=', token), ('state','=','draft')]).id
      with registry.cursor() as cr:
          http.request.env['sale.order'].action_button_confirm(sale_id,context=None)
  </code></pre>
  
  <p>I tried following scenarios</p>
  
  <ol>
  <li>action_button_confirm(cr, openerp.SUPERUSER_ID, sale_id)</li>
  <li>action_button_confirm(cr, uid, openerp.SUPERUSER_ID, sale_id)</li>
  <li>action_button_confirm(cr, uid, openerp.SUPERUSER_ID, sale_id, contect=None)</li>
  </ol>
  
  <p>The sale order confirm function is</p>
  
  <pre><code>def action_button_confirm(self, cr, uid, ids, context=None):
  </code></pre>