title: pool for Odoo objects from http.Controller class (python)
body: <p>I'm new to Odoo (openERP) and python. I have an http.Controller in which I'm trying to retrieve a template which should contain some objects from openERP database, more specifically fleet_vehicle_log_fuel_obj. 
  Usually the self.pool.get() method should do the trick, but in controller it doesn't work. </p>
  
  <p>I'm trying to send some objects to the client and process them with javascript.</p>
  
  <p>Here's my controller:</p>
  
  <pre><code>import json
  from openerp import SUPERUSER_ID, pooler
  from openerp.addons.web import http
  from openerp.addons.web.http import request
  
  
  class google_map(http.Controller):
  
  @http.route(['/google_map'], type='http', auth="public", website=True)
  def google_map(self, *arg, **post):
      cr, uid, context = request.cr, request.uid, request.context
      fleet_vehicle_log_fuel_obj = self.pool.get('fleet_vehicle_log_fuel');
      #fleet_vehicle_log_fuel_obj = pool.get('fleet_vehicle_log_fuel')
      ids = fleet_vehicle_log_fuel_obj.search(cr, uid, [])
      return request.website.render("fleet.google_map",  json.dumps(ids))
  </code></pre>
  
  <p>the error I get is 'google_map' object has no attribute 'pool'. How can i get all the objects of a certain type and send them to the client? </p>