← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 728578] [NEW] Problems get KLM file in module google_earth

 

Public bug reported:

Hi my request is about to insert an error management in "Partner representation", near line 231 in google_earth.py file (see below). I have a long list of partner and wizard, with not "well format" address, still goes in error. I think it's better, for ex: generate a second file raising problematic address (in the wizard), but permit to the client the opening of a "not fully" KLM file instead of an error :)
so:
            try:
                if data['address'] in geocode_dict:
                    coordinates = geocode_dict[data['address']]
                else:
                    coordinates = geocode(self, data['address'])
                    geocode_dict[data['address']] = coordinates
                etree.SubElement(kml_point, 'coordinates').text = coordinates
            except:  
                # TODO adding address and partner ref. in a file (output with the klm at end of wizard)
                continue  # without raise!


Thanks

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/728578

Title:
  Problems get KLM file in module google_earth

Status in OpenERP Modules (addons):
  New

Bug description:
  Hi my request is about to insert an error management in "Partner representation", near line 231 in google_earth.py file (see below). I have a long list of partner and wizard, with not "well format" address, still goes in error. I think it's better, for ex: generate a second file raising problematic address (in the wizard), but permit to the client the opening of a "not fully" KLM file instead of an error :)
  so:
              try:
                  if data['address'] in geocode_dict:
                      coordinates = geocode_dict[data['address']]
                  else:
                      coordinates = geocode(self, data['address'])
                      geocode_dict[data['address']] = coordinates
                  etree.SubElement(kml_point, 'coordinates').text = coordinates
              except:  
                  # TODO adding address and partner ref. in a file (output with the klm at end of wizard)
                  continue  # without raise!

  
  Thanks



Follow ups

References