# speeches urlpatterns += patterns( 'billy.web.public.views.speeches', url(r'^(?P<abbr>[a-z-]+)/speeches/$', 'speeches', name='speeches'), url(r'^(?P<abbr>[a-z-]+)/speeches/(?P<event_id>[\w-]+)/', 'speeches_by_event', name='speeches_by_event'), ) # bills urlpatterns += patterns( 'billy.web.public.views.bills', url(r'^(?P<abbr>all)/bills/$', ensure_csrf_cookie(AllBillList.as_view()), name='all_bills'), url(r'^(?P<abbr>all)/bills-csv/$', ensure_csrf_cookie(AllBillCSVList.as_view()), name='all_bills_csv'), url(r'^(?P<abbr>[a-z-]+)/bills/$', ensure_csrf_cookie(BillList.as_view()), name='bills'), url(r'^(?P<abbr>[a-z-]+)/bills/feed/$', BillFeed.as_view(), name='bills_feed'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$', 'bill', name='bill'), url(r'^(?P<abbr>[a-z-]+)/(?P<bill_id>[^/]+)/$', 'bill_noslug', name='bill_noslug'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/' r'(?P<bill_id>[^/]+)/(?P<key>documents)/$', 'all_documents', name='bill_all_documents'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/'
'billy.web.public.views.speeches', url(r'^(?P<abbr>[a-z-]+)/speeches/$', 'speeches', name='speeches'), url(r'^(?P<abbr>[a-z-]+)/speeches/(?P<event_id>[\w-]+)/', 'speeches_by_event', name='speeches_by_event'), ) # bills urlpatterns += patterns( 'billy.web.public.views.bills', url(r'^(?P<abbr>[a-z-]+)/bills/$', BillList.as_view(), name='bills'), url(r'^(?P<abbr>[a-z-]+)/bills/feed/$', BillFeed.as_view(), name='bills_feed'), url(r'^(?P<abbr>all)/bills/$', AllBillList.as_view(), name='bills'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$', 'bill', name='bill'), url(r'^(?P<abbr>[a-z-]+)/(?P<bill_id>[^/]+)/$', 'bill_noslug', name='bill_noslug'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/' r'(?P<bill_id>[^/]+)/(?P<key>documents)/$', 'all_documents', name='bill_all_documents'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/' r'(?P<bill_id>[^/]+)/documents/(?P<doc_id>[\w-]+)/$', 'document', name='document'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/' r'(?P<bill_id>[^/]+)/(?P<key>versions)/$', 'all_versions', name='bill_all_versions'), url(r'^(?P<abbr>[a-z-]+)/votes/(?P<vote_id>[\w-]+)/$', 'vote', name='vote'),
) # speeches urlpatterns += patterns( 'billy.web.public.views.speeches', url(r'^(?P<abbr>[a-z-]+)/speeches/$', 'speeches', name='speeches'), url(r'^(?P<abbr>[a-z-]+)/speeches/(?P<event_id>[\w-]+)/', 'speeches_by_event', name='speeches_by_event'), ) # bills urlpatterns += patterns( 'billy.web.public.views.bills', url(r'^(?P<abbr>all)/bills/$', ensure_csrf_cookie(AllBillList.as_view()), name='all_bills'), url(r'^(?P<abbr>all)/bills-csv/$', ensure_csrf_cookie(AllBillCSVList.as_view()), name='all_bills_csv'), url(r'^(?P<abbr>[a-z-]+)/bills/$', ensure_csrf_cookie(BillList.as_view()), name='bills'), url(r'^(?P<abbr>[a-z-]+)/bills/feed/$', BillFeed.as_view(), name='bills_feed'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$', 'bill', name='bill'), url(r'^(?P<abbr>[a-z-]+)/(?P<bill_id>[^/]+)/$', 'bill_noslug',
urlpatterns += patterns( 'billy.web.public.views.legislators', url(r'^(?P<abbr>[a-z-]+)/legislators/$', 'legislators', name='legislators'), url(r'^(?P<abbr>[a-z-]+)/legislators/(?P<_id>[\w-]+)/(?P<slug>[^/]*)/$', 'legislator', name='legislator'), url(r'^(?P<abbr>[a-z-]+)/legislators/(?P<_id>[\w-]+)/$', 'legislator', name='legislator_noslug'), ) # bills urlpatterns += patterns( 'billy.web.public.views.bills', url(r'^(?P<abbr>all)/bills/$', ensure_csrf_cookie(AllBillList.as_view()), name='all_bills'), url(r'^(?P<abbr>all)/bills-csv/$', ensure_csrf_cookie(AllBillCSVList.as_view()), name='all_bills_csv'), url(r'^(?P<abbr>[a-z-]+)/bills/$', ensure_csrf_cookie(BillList.as_view()), name='bills'), url(r'^(?P<abbr>[a-z-]+)/bills/feed/$', BillFeed.as_view(), name='bills_feed'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$', 'bill', name='bill'), url(r'^(?P<abbr>[a-z-]+)/(?P<bill_id>[^/]+)/$', 'bill_noslug', name='bill_noslug'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/' r'(?P<bill_id>[^/]+)/(?P<key>documents)/$', 'all_documents', name='bill_all_documents'), url(r'^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/'
url(r"^(?P<abbr>[a-z-]+)/legislators/$", "legislators", name="legislators"), url(r"^(?P<abbr>[a-z-]+)/legislators/(?P<_id>[\w-]+)/(?P<slug>[^/]*)/$", "legislator", name="legislator"), url(r"^(?P<abbr>[a-z-]+)/legislators/(?P<_id>[\w-]+)/$", "legislator", name="legislator_noslug"), ) # speeches urlpatterns += patterns( "billy.web.public.views.speeches", url(r"^(?P<abbr>[a-z-]+)/speeches/$", "speeches", name="speeches"), url(r"^(?P<abbr>[a-z-]+)/speeches/(?P<event_id>[\w-]+)/", "speeches_by_event", name="speeches_by_event"), ) # bills urlpatterns += patterns( "billy.web.public.views.bills", url(r"^(?P<abbr>all)/bills/$", ensure_csrf_cookie(AllBillList.as_view()), name="all_bills"), url(r"^(?P<abbr>all)/bills-csv/$", ensure_csrf_cookie(AllBillCSVList.as_view()), name="all_bills_csv"), url(r"^(?P<abbr>[a-z-]+)/bills/$", ensure_csrf_cookie(BillList.as_view()), name="bills"), url(r"^(?P<abbr>[a-z-]+)/bills/feed/$", BillFeed.as_view(), name="bills_feed"), url(r"^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$", "bill", name="bill"), url(r"^(?P<abbr>[a-z-]+)/(?P<bill_id>[^/]+)/$", "bill_noslug", name="bill_noslug"), url( r"^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/" r"(?P<bill_id>[^/]+)/(?P<key>documents)/$", "all_documents", name="bill_all_documents", ), url( r"^(?P<abbr>[a-z-]+)/bills/(?P<session>[^/]+)/" r"(?P<bill_id>[^/]+)/documents/(?P<doc_id>[\w-]+)/$", "document", name="document", ),
url(r"^(?P<abbr>[a-z]{2})/legislators/(?P<_id>\w+)/$", "legislator", name="legislator_noslug"), ) # speeches urlpatterns += patterns( "billy.web.public.views.speeches", url(r"^(?P<abbr>[a-z]{2})/speeches/$", "speeches", name="speeches"), url(r"^(?P<abbr>[a-z]{2})/speeches/(?P<event_id>\w+)/", "speeches_by_event", name="speeches_by_event"), ) # bills urlpatterns += patterns( "billy.web.public.views.bills", url(r"^(?P<abbr>[a-z]{2})/bills/$", BillList.as_view(), name="bills"), url(r"^(?P<abbr>[a-z]{2})/bills/feed/$", BillFeed.as_view(), name="bills_feed"), url(r"^(?P<abbr>all)/bills/$", AllBillList.as_view(), name="bills"), url(r"^(?P<abbr>[a-z]{2})/bills/(?P<session>[^/]+)/(?P<bill_id>[^/]+)/$", "bill", name="bill"), url(r"^(?P<abbr>[a-z]{2})/(?P<bill_id>[^/]+)/$", "bill_noslug", name="bill_noslug"), url( r"^(?P<abbr>[a-z]{2})/bills/(?P<session>[^/]+)/" r"(?P<bill_id>[^/]+)/(?P<key>documents)/$", "all_documents", name="bill_all_documents", ), url( r"^(?P<abbr>[a-z]{2})/bills/(?P<session>[^/]+)/" r"(?P<bill_id>[^/]+)/documents/(?P<doc_id>\w+)/$", "document", name="document", ), url( r"^(?P<abbr>[a-z]{2})/bills/(?P<session>[^/]+)/" r"(?P<bill_id>[^/]+)/(?P<key>versions)/$", "all_versions",