def content(self, context): partial_view = ParagraphSXSView.as_view() response = partial_view(self.request, label_id=context['label_id'], notice_id=context['notice_id']) self._assert_good(response) response.render() return response.content
url(r'^partial/search(?:/cfr)?/%s$' % reg_pattern, PartialSearch.as_view(), name='partial_search', kwargs={'doc_type': 'cfr'}), url(r'^partial/search/preamble/%s$' % preamble_pattern, PartialSearch.as_view(), name='partial_search', kwargs={'doc_type': 'preamble'}), # A diff view of a section (without chrome) url(r'^partial/diff/%s/%s/%s$' % ( section_pattern, version_pattern, newer_version_pattern), lt_cache(PartialSectionDiffView.as_view()), name='partial_section_diff_view'), # A section by section paragraph (without chrome) # Example: http://.../partial/sxs/201-2-g/2011-1738 url(r'^partial/sxs/%s/%s$' % (paragraph_pattern, notice_pattern), lt_cache(ParagraphSXSView.as_view()), name='paragraph_sxs_view'), # A definition templated to be displayed in the sidebar (without chrome) # Example: http://.../partial/definition/201-2-g/2011-1738 url(r'^partial/definition/%s/%s$' % (paragraph_pattern, version_pattern), lt_cache(PartialDefinitionView.as_view()), name='partial_definition_view'), # A regulation section without chrome # Example: http://.../partial/201-4/2013-10704 url(r'^partial/%s/%s$' % (section_pattern, version_pattern), lt_cache(PartialSectionView.as_view()), name='partial_section_view'), # Subterp, interpretations of a whole subpart, emptypart or appendices # Example: http://.../partial/201-Subpart-A-Interp/2013-10706 # http://.../partial/201-Subpart-Interp/2013-10706 # http://.../partial/201-Appendices-Interp/2013-10706
name='sidebar'), # Load just search results url(r'^partial/search/%s$' % reg_pattern, PartialSearch.as_view(), name='partial_search'), #A diff view of a section (without chrome) url(r'^partial/diff/%s/%s/%s$' % ( section_pattern, version_pattern, newer_version_pattern), lt_cache(PartialSectionDiffView.as_view()), name='partial_section_diff_view'), #A section by section paragraph (without chrome) #Example: http://.../partial/sxs/201-2-g/2011-1738 url(r'^partial/sxs/%s/%s$' % (paragraph_pattern, notice_pattern), lt_cache(ParagraphSXSView.as_view()), name='paragraph_sxs_view'), #A definition templated to be displayed in the sidebar (without chrome) #Example: http://.../partial/definition/201-2-g/2011-1738 url(r'^partial/definition/%s/%s$' % (paragraph_pattern, version_pattern), lt_cache(PartialDefinitionView.as_view()), name='partial_definition_view'), #A regulation section without chrome #Example: http://.../partial/201-4/2013-10704 url(r'^partial/%s/%s$' % (section_pattern, version_pattern), lt_cache(PartialSectionView.as_view()), name='partial_section_view'), # Subterp, interpretations of a whole subpart, emptypart or appendices # Example: http://.../partial/201-Subpart-A-Interp/2013-10706 # http://.../partial/201-Subpart-Interp/2013-10706 # http://.../partial/201-Appendices-Interp/2013-10706
# Load just the sidebar # Example: http://.../partial/sidebar/201-2/2013-10704 url(r"^partial/sidebar/%s/%s$" % (paragraph_pattern, version_pattern), SideBarView.as_view(), name="sidebar"), # Load just search results url(r"^partial/search/%s$" % reg_pattern, PartialSearch.as_view(), name="partial_search"), # A diff view of a section (without chrome) url( r"^partial/diff/%s/%s/%s$" % (section_pattern, version_pattern, newer_version_pattern), PartialSectionDiffView.as_view(), name="partial_section_diff_view", ), # A section by section paragraph (without chrome) # Example: http://.../partial/sxs/201-2-g/2011-1738 url( r"^partial/sxs/%s/%s$" % (paragraph_pattern, notice_pattern), ParagraphSXSView.as_view(), name="paragraph_sxs_view", ), # A definition templated to be displayed in the sidebar (without chrome) # Example: http://.../partial/definition/201-2-g/2011-1738 url( r"^partial/definition/%s/%s$" % (paragraph_pattern, version_pattern), PartialDefinitionView.as_view(), name="partial_definition_view", ), # A regulation section without chrome # Example: http://.../partial/201-4/2013-10704 url( r"^partial/%s/%s$" % (section_pattern, version_pattern), PartialSectionView.as_view(), name="partial_section_view",
name='sidebar'), # Load just search results url(r'^partial/search/%s$' % reg_pattern, PartialSearch.as_view(), name='partial_search'), #A diff view of a section (without chrome) url(r'^partial/diff/%s/%s/%s$' % (section_pattern, version_pattern, newer_version_pattern), PartialSectionDiffView.as_view(), name='partial_section_diff_view'), #A section by section paragraph (without chrome) #Example: http://.../partial/sxs/201-2-g/2011-1738 url(r'^partial/sxs/%s/%s$' % (paragraph_pattern, notice_pattern), ParagraphSXSView.as_view(), name='paragraph_sxs_view'), #A definition templated to be displayed in the sidebar (without chrome) #Example: http://.../partial/definition/201-2-g/2011-1738 url(r'^partial/definition/%s/%s$' % (paragraph_pattern, version_pattern), PartialDefinitionView.as_view(), name='partial_definition_view'), #A regulation section without chrome #Example: http://.../partial/201-4/2013-10704 url(r'^partial/%s/%s$' % (section_pattern, version_pattern), PartialSectionView.as_view(), name='partial_section_view'), # Subterp, interpretations of a whole subpart, emptypart or appendices # Example: http://.../partial/201-Subpart-A-Interp/2013-10706 # http://.../partial/201-Subpart-Interp/2013-10706 # http://.../partial/201-Appendices-Interp/2013-10706