def page_context(self): context = { 'report': self, 'report_table': { 'default_rows': 25 }, 'filter_context': self.filter_context, 'url': self.url, 'method': 'POST', 'headers': self.headers, 'can_edit_report': can_edit_report(self.request, self), 'has_report_builder_trial': has_report_builder_trial(self.request), 'report_filter_form_action_css_class': DEFAULT_CSS_FORM_ACTIONS_CLASS_REPORT_FILTER, } context.update(self.saved_report_context_data) context.update(self.pop_report_builder_context_data()) if isinstance(self.spec, ReportConfiguration ) and self.spec.report_meta.builder_report_type == 'map': context['report_table']['default_rows'] = 100 return context
def page_context(self): context = { 'report': self, 'report_table': { 'default_rows': 25 }, 'filter_context': self.filter_context, 'url': self.url, 'method': 'POST', 'headers': self.headers, 'can_edit_report': can_edit_report(self.request, self), 'has_report_builder_trial': has_report_builder_trial(self.request), 'report_filter_form_action_css_class': CSS_ACTION_CLASS, } context.update(self.saved_report_context_data) context.update(self.pop_report_builder_context_data()) if isinstance(self.spec, ReportConfiguration ) and self.spec.report_meta.builder_report_type == 'map': context['report_table']['default_rows'] = 100 if self.request.couch_user.is_staff: if not self.data_source._custom_query_provider: context[ 'queries'] = self.data_source.data_source.get_query_strings( ) return context
def page_context(self): context = { 'report': self, 'report_table': {'default_rows': 25}, 'filter_context': self.filter_context, 'url': self.url, 'headers': self.headers, 'can_edit_report': can_edit_report(self.request, self), 'has_report_builder_trial': has_report_builder_trial(self.request), 'report_filter_form_action_css_class': DEFAULT_CSS_FORM_ACTIONS_CLASS_REPORT_FILTER, } context.update(self.saved_report_context_data) context.update(self.pop_report_builder_context_data()) return context
def page_context(self): context = { 'report': self, 'report_table': {'default_rows': 25}, 'filter_context': self.filter_context, 'url': self.url, 'method': 'POST', 'headers': self.headers, 'can_edit_report': can_edit_report(self.request, self), 'has_report_builder_trial': has_report_builder_trial(self.request), 'report_filter_form_action_css_class': CSS_ACTION_CLASS, } context.update(self.saved_report_context_data) context.update(self.pop_report_builder_context_data()) if isinstance(self.spec, ReportConfiguration) and self.spec.report_meta.builder_report_type == 'map': context['report_table']['default_rows'] = 100 return context