from documents.views import SearchView from documents.views import ExportView from documents.views import export_allegro from documents.views import export_bibtex from documents.views import NonUserDetailView urlpatterns = patterns('documents.views', url(r'^$', 'index', name='documents.index'), url(r'^search/$', SearchView.as_view(), name='documents.search'), url(r'^list/$', DocumentList.as_view(), name='documents.list'), url(r'^list/missed/$', MissedDocumentList.as_view(), name='documents.list.missed'), url(r'^list/lend/$', LendDocumentList.as_view(), name='documents.list.lend'), url(r'^list/nonuserlend/(?P<nonuser>\d+)/$', NonUserLendDocumentList.as_view(), name='documents.list.nonuserlend'), url(r'^view/(?P<pk>\w\d+)/$', DocumentDetailView.as_view(), name='documents.detail'), url(r'^lend/(?P<pk>\w\d+)/$', lend,
from django.conf.urls import patterns, include, url from django.contrib import admin from documents.views import DocumentList, DocumentDetail, NodeDetail urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^document/list/$', DocumentList.as_view(), name="document_list"), url(r'^document/(?P<slug>[-_\w]+)/$', DocumentDetail.as_view(), name="document_detail"), url(r'^node/(?P<pk>\d+)/$', NodeDetail.as_view(), name="node_detail"), url(r'^$', DocumentList.as_view(), name="index"), )
urlpatterns = [ # Document short url url(r'^documents/(?P<document_key>[\w-]+)/$', DocumentRedirect.as_view(), name='document_short_url'), # Downloads url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/download/$', DocumentDownload.as_view(), name="document_download"), # Documents url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/$', DocumentList.as_view(), name="category_document_list"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/create/$', DocumentCreate.as_view(), name="document_create"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/$', DocumentDetail.as_view(), name="document_detail"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/edit/$', DocumentEdit.as_view(), name="document_edit"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/edit/(?P<revision>\d+)/$', DocumentEdit.as_view(), name="document_edit"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/revise/$', DocumentRevise.as_view(),
DocumentRevise, DocumentDelete, ) urlpatterns = patterns( "", # Document short url url(r"^documents/(?P<document_key>[\w-]+)/$", DocumentRedirect.as_view(), name="document_short_url"), # Downloads url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/download/$", DocumentDownload.as_view(), name="document_download", ), # Documents url(r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/$", DocumentList.as_view(), name="category_document_list"), url(r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/create/$", DocumentCreate.as_view(), name="document_create"), url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/$", DocumentDetail.as_view(), name="document_detail", ), url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/edit/$", DocumentEdit.as_view(), name="document_edit", ), url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/revise/$", DocumentRevise.as_view(), name="document_revise",