def view(self, dataset, dimension, format='html'): self._get_dimension(dataset, dimension) if format == 'json': dimension = dimension_apply_links(dataset, c.dimension.as_dict()) return to_jsonp(dimension) c.widget = get_widget('aggregate_table') c.widget_state = {'drilldowns': [c.dimension.name]} return render('dimension/view.html')
def index(self, dataset, format='html'): self._get_dataset(dataset) if format == 'json': dimensions = [dimension_apply_links(dataset, d.as_dict()) \ for d in c.dataset.dimensions] return to_jsonp(dimensions) else: return render('dimension/index.html')
def index(self, dataset, format="html"): self._get_dataset(dataset) etag_cache_keygen(c.dataset.updated_at, format) if format == "json": dimensions = [dimension_apply_links(dataset, d.as_dict()) for d in c.dataset.dimensions] return to_jsonp(dimensions) else: return templating.render("dimension/index.html")
def view(self, dataset, dimension, format='html'): self._get_dimension(dataset, dimension) etag_cache_keygen(c.dataset.updated_at, format) if format == 'json': dimension = dimension_apply_links(dataset, c.dimension.as_dict()) return to_jsonp(dimension) c.widget = get_widget('aggregate_table') c.widget_state = {'drilldowns': [c.dimension.name]} return templating.render('dimension/view.html')
def view(self, dataset, dimension, format="html"): self._get_dimension(dataset, dimension) etag_cache_keygen(c.dataset.updated_at, format) if format == "json": dimension = dimension_apply_links(dataset, c.dimension.as_dict()) return to_jsonp(dimension) c.widget = get_widget("aggregate_table") c.widget_state = {"drilldowns": [c.dimension.name]} return templating.render("dimension/view.html")
def index(self, dataset, format='html'): self._get_dataset(dataset) etag_cache_keygen(c.dataset.updated_at, format) if format == 'json': dimensions = [dimension_apply_links(dataset, d.as_dict()) \ for d in c.dataset.dimensions] return to_jsonp(dimensions) else: return render('dimension/index.html')