Beispiel #1
0
    url(r'^sxs/%s/%s$' % (paragraph_pattern, notice_pattern),
        lt_cache(ChromeSXSView.as_view()),
        name='chrome_sxs_view'),
    # Search results for non-JS viewers
    # Example: http://.../search?q=term&version=2011-1738
    url(r'^search(?:/cfr)?/%s$' % reg_pattern,
        ChromeSearchView.as_view(), name='chrome_search',
        kwargs={'doc_type': 'cfr'}),
    url(r'^search/preamble/%s$' % preamble_pattern,
        ChromePreambleSearchView.as_view(), name='chrome_search_preamble',
        kwargs={'doc_type': 'preamble'}),
    # Diff view of a section for non-JS viewers (or book markers)
    # Example: http://.../diff/201-4/2011-1738/2013-10704
    url(r'^diff/%s/%s/%s$' %
        (section_pattern, version_pattern, newer_version_pattern),
        lt_cache(ChromeSectionDiffView.as_view()),
        name='chrome_section_diff_view'),

    url(r'^preamble/(?P<doc_number>[\w-]+)/cfr_changes/(?P<section>[\w-]+)$',
        CFRChangesView.as_view(), name='cfr_changes'),
    url(r'^preamble/(?P<paragraphs>[-\w]+(/[-\w]+)*)$',
        PreambleView.as_view(), name='chrome_preamble'),

    # Redirect to version by date
    # Example: http://.../201-3-v/1999/11/8
    url(r'^%s/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})$'
        % paragraph_pattern, redirect_by_date, name='redirect_by_date'),
    # A regulation section with chrome
    # Example: http://.../201-4/2013-10704
    url(r'^%s/%s$' % (section_pattern, version_pattern),
        lt_cache(ChromeView.as_view(partial_class=PartialSectionView)),
Beispiel #2
0
 # Example http://.../regulation_redirect/201-3-v
 url(r"^regulation_redirect/%s$" % paragraph_pattern, redirect_by_date_get, name="redirect_by_date_get"),
 # Redirect to a diff based on GET params
 # Example http://.../diff_redirect/201-3/old_version?new_version=new
 url(r"^diff_redirect/%s/%s$" % (section_pattern, version_pattern), diff_redirect, name="diff_redirect"),
 # A section by section paragraph with chrome
 # Example: http://.../sxs/201-2-g/2011-1738
 url(r"^sxs/%s/%s$" % (paragraph_pattern, notice_pattern), ChromeSXSView.as_view(), name="chrome_sxs_view"),
 # Search results for non-JS viewers
 # Example: http://.../search?q=term&version=2011-1738
 url(r"^search/%s$" % reg_pattern, ChromeSearchView.as_view(), name="chrome_search"),
 # Diff view of a section for non-JS viewers (or book markers)
 # Example: http://.../diff/201-4/2011-1738/2013-10704
 url(
     r"^diff/%s/%s/%s$" % (section_pattern, version_pattern, newer_version_pattern),
     ChromeSectionDiffView.as_view(),
     name="chrome_section_diff_view",
 ),
 # Redirect to version by date
 # Example: http://.../regulations/201-3-v/1999/11/8
 url(
     r"^%s/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})$" % paragraph_pattern,
     redirect_by_date,
     name="redirect_by_date",
 ),
 # A regulation section with chrome
 # Example: http://.../regulation/201-4/2013-10704
 url(r"^%s/%s$" % (section_pattern, version_pattern), ChromeSectionView.as_view(), name="chrome_section_view"),
 # Subterp, interpretations of a while subpart, emptypart or appendices
 # Example: http://.../201-Subpart-A-Interp/2013-10706
 #          http://.../201-Subpart-Interp/2013-10706
Beispiel #3
0
     diff_redirect, name='diff_redirect'),
 #A section by section paragraph with chrome
 #Example: http://.../sxs/201-2-g/2011-1738
 url(r'^sxs/%s/%s$' % (paragraph_pattern, notice_pattern),
     lt_cache(ChromeSXSView.as_view()),
     name='chrome_sxs_view'),
 # Search results for non-JS viewers
 # Example: http://.../search?q=term&version=2011-1738
 url(r'^search/%s$' % reg_pattern,
     ChromeSearchView.as_view(),
     name='chrome_search'),
 # Diff view of a section for non-JS viewers (or book markers)
 # Example: http://.../diff/201-4/2011-1738/2013-10704
 url(r'^diff/%s/%s/%s$' %
     (section_pattern, version_pattern, newer_version_pattern),
     lt_cache(ChromeSectionDiffView.as_view()),
     name='chrome_section_diff_view'),
 # Redirect to version by date
 # Example: http://.../201-3-v/1999/11/8
 url(r'^%s/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})$'
     % paragraph_pattern, redirect_by_date, name='redirect_by_date'),
 #A regulation section with chrome
 #Example: http://.../201-4/2013-10704
 url(r'^%s/%s$' % (section_pattern, version_pattern),
     lt_cache(ChromeSectionView.as_view()),
     name='chrome_section_view'),
 # Subterp, interpretations of a while subpart, emptypart or appendices
 # Example: http://.../201-Subpart-A-Interp/2013-10706
 #          http://.../201-Subpart-Interp/2013-10706
 #          http://.../201-Appendices-Interp/2013-10706
 url(r'^%s/%s$' % (subterp_pattern, version_pattern),
Beispiel #4
0
     name='diff_redirect'),
 #A section by section paragraph with chrome
 #Example: http://.../sxs/201-2-g/2011-1738
 url(r'^sxs/%s/%s$' % (paragraph_pattern, notice_pattern),
     ChromeSXSView.as_view(),
     name='chrome_sxs_view'),
 # Search results for non-JS viewers
 # Example: http://.../search?q=term&version=2011-1738
 url(r'^search/%s$' % reg_pattern,
     ChromeSearchView.as_view(),
     name='chrome_search'),
 # Diff view of a section for non-JS viewers (or book markers)
 # Example: http://.../diff/201-4/2011-1738/2013-10704
 url(r'^diff/%s/%s/%s$' %
     (section_pattern, version_pattern, newer_version_pattern),
     ChromeSectionDiffView.as_view(),
     name='chrome_section_diff_view'),
 # Redirect to version by date
 # Example: http://.../regulations/201-3-v/1999/11/8
 url(r'^%s/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})$' %
     paragraph_pattern,
     redirect_by_date,
     name='redirect_by_date'),
 #A regulation section with chrome
 #Example: http://.../regulation/201-4/2013-10704
 url(r'^%s/%s$' % (section_pattern, version_pattern),
     ChromeSectionView.as_view(),
     name='chrome_section_view'),
 # Subterp, interpretations of a while subpart, emptypart or appendices
 # Example: http://.../201-Subpart-A-Interp/2013-10706
 #          http://.../201-Subpart-Interp/2013-10706