def format_export_task(task, custom_grid): info = [] if custom_grid: grid = "custom grid" else: grid = "grid '%s'" % task.md['grid_name'] info.append("Exporting cache '%s' to '%s' with %s in %s" % ( task.md['cache_name'], task.md['dest'], grid, task.grid.srs.srs_code)) if task.coverage: info.append(' Limited to: %s (EPSG:4326)' % (format_bbox(task.coverage.extent.llbbox), )) info.append(' Levels: %s' % (task.levels, )) return '\n'.join(info)