예제 #1
0
     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),
     lt_cache(ChromeSubterpView.as_view()),
     name=ChromeSubterpView.version_switch_view),
 #Interpretation of a section/paragraph or appendix
 #Example: http://.../201-4-Interp/2013-10704
 url(r'^%s/%s$' % (interp_pattern, version_pattern),
     lt_cache(ChromeInterpView.as_view()),
     name='chrome_interp_view'),
 #The whole regulation with chrome
 #Example: http://.../201/2013-10704
예제 #2
0
 # 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
 #          http://.../201-Appendices-Interp/2013-10706
 url(r'^%s/%s$' % (subterp_pattern, version_pattern),
     ChromeSubterpView.as_view(),
     name=ChromeSubterpView.version_switch_view),
 #Interpretation of a section/paragraph or appendix
 #Example: http://.../regulation/201-4-Interp/2013-10704
 url(r'^%s/%s$' % (interp_pattern, version_pattern),
     ChromeInterpView.as_view(),
     name='chrome_interp_view'),
 #The whole regulation with chrome
 #Example: http://.../regulation/201/2013-10704
예제 #3
0
 # 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
 #          http://.../201-Appendices-Interp/2013-10706
 url(
     r"^%s/%s$" % (subterp_pattern, version_pattern),
     ChromeSubterpView.as_view(),
     name=ChromeSubterpView.version_switch_view,
 ),
 # Interpretation of a section/paragraph or appendix
 # Example: http://.../regulation/201-4-Interp/2013-10704
 url(r"^%s/%s$" % (interp_pattern, version_pattern), ChromeInterpView.as_view(), name="chrome_interp_view"),
 # The whole regulation with chrome
 # Example: http://.../regulation/201/2013-10704
 url(r"^%s/%s$" % (reg_pattern, version_pattern), ChromeRegulationView.as_view(), name="chrome_regulation_view"),
예제 #4
0
     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
 #          http://.../201-Appendices-Interp/2013-10706
 url(r'^%s/%s$' % (subterp_pattern, version_pattern),
     ChromeSubterpView.as_view(),
     name=ChromeSubterpView.version_switch_view),
 #Interpretation of a section/paragraph or appendix
 #Example: http://.../regulation/201-4-Interp/2013-10704
 url(r'^%s/%s$' % (interp_pattern, version_pattern),
     ChromeInterpView.as_view(),
     name='chrome_interp_view'),
 #The whole regulation with chrome
 #Example: http://.../regulation/201/2013-10704