# Path: papers/views.py
# class LaboratoryPaperList(ListView):
# class InterestingPaperList(ListView):
# class PaperDetailView(DetailView):
# class PaperCreate(PermissionRequiredMixin, CreateView):
# class PaperUpdate(PermissionRequiredMixin, UpdateView):
# class PaperDelete(PermissionRequiredMixin, DeleteView):
# class CommentaryList(ListView):
# class CommentaryDetail(DetailView):
# class CommentaryCreate(PermissionRequiredMixin, CreateView):
# class CommentaryUpdate(PermissionRequiredMixin, UpdateView):
# class CommentaryDelete(PermissionRequiredMixin, DeleteView):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):


from django.conf.urls import include, url
from papers import views
'''This package has the url encodings for the :mod:`papers` app.'''



urlpatterns = [
    url(r'^interesting/?$', views.InterestingPaperList.as_view(), name="interesting-papers"), 
    url(r'^new/?$', views.PaperCreate.as_view(), name="paper-new"),
    url(r'^commentaries/?$', views.CommentaryList.as_view(), name='commentary-list'), 
    url(r'^commentary/?$', views.CommentaryList.as_view(), name='commentary-list'),     
    url(r'^commentary/new/?$', views.CommentaryCreate.as_view(), name='commentary-new'),
    url(r'^commentary/(?P<pk>[-\d]+)/edit/?$', views.CommentaryUpdate.as_view(), name='commentary-edit'),
    url(r'^commentary/(?P<pk>[-\d]+)/delete/?$', views.CommentaryDelete.as_view(), name='commentary-delete'),
    url(r'^commentary/(?P<pk>[-\d]+)/?$', views.CommentaryDetail.as_view(), name='commentary-detail'),

# Path: papers/views.py
# class LaboratoryPaperList(ListView):
# class InterestingPaperList(ListView):
# class PaperDetailView(DetailView):
# class PaperCreate(PermissionRequiredMixin, CreateView):
# class PaperUpdate(PermissionRequiredMixin, UpdateView):
# class PaperDelete(PermissionRequiredMixin, DeleteView):
# class CommentaryList(ListView):
# class CommentaryDetail(DetailView):
# class CommentaryCreate(PermissionRequiredMixin, CreateView):
# class CommentaryUpdate(PermissionRequiredMixin, UpdateView):
# class CommentaryDelete(PermissionRequiredMixin, DeleteView):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):


# Path: papers/urls.py
from django.conf.urls import include, url
from papers import views

'''This package has the url encodings for the :mod:`papers` app.'''



urlpatterns = [
    url(r'^interesting/?$', views.InterestingPaperList.as_view(), name="interesting-papers"), 
    url(r'^new/?$', views.PaperCreate.as_view(), name="paper-new"),
    url(r'^commentaries/?$', views.CommentaryList.as_view(), name='commentary-list'), 
    url(r'^commentary/?$', views.CommentaryList.as_view(), name='commentary-list'),     
    url(r'^commentary/new/?$', views.CommentaryCreate.as_view(), name='commentary-new'),
    url(r'^commentary/(?P<pk>[-\d]+)/edit/?$', views.CommentaryUpdate.as_view(), name='commentary-edit'),
    url(r'^commentary/(?P<pk>[-\d]+)/delete/?$', views.CommentaryDelete.as_view(), name='commentary-delete'),
    url(r'^commentary/(?P<pk>[-\d]+)/?$', views.CommentaryDetail.as_view(), name='commentary-detail'),

    url(r'^(?P<title_slug>[-\w\d]+)/edit/?$', views.PaperUpdate.as_view(), name="paper-edit"),  