예제 #1
0
 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')
예제 #2
0
 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')
예제 #3
0
 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")
예제 #4
0
 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')
예제 #5
0
 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')
예제 #6
0
 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")
예제 #7
0
 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')