Ejemplo n.º 1
0
    # Flux
    url(r'^flux/rss/$', LastContentFeedRSS(), name='feed-rss'),
    url(r'^flux/atom/$', LastContentFeedATOM(), name='feed-atom'),

    url(r'^tutoriels/(?P<pk>\d+)/$',
        ContentOfAuthor.as_view(type='TUTORIAL', context_object_name='tutorials'),
        name='find-tutorial'),
    url(r'^articles/(?P<pk>\d+)/$',
        ContentOfAuthor.as_view(type='ARTICLE', context_object_name='articles'),
        name='find-article'),
    url(r'^tribunes/(?P<pk>\d+)/$',
        ContentOfAuthor.as_view(type='OPINION', context_object_name='opinions'),
        name='find-opinion'),
    url(r'^aides/$', ContentsWithHelps.as_view(), name='helps'),
    url(r'^(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$',
        DisplayContainer.as_view(public_is_prioritary=False),
        name='view-container'),
    url(r'^(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        DisplayContainer.as_view(public_is_prioritary=False),
        name='view-container'),

    url(r'^(?P<pk>\d+)/(?P<slug>.+)/$', DisplayContent.as_view(public_is_prioritary=False),
        name='view'),

    url(r'^telecharger/(?P<pk>\d+)/(?P<slug>.+)/$', DownloadContent.as_view(),
        name='download-zip'),

    # beta:
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(public_is_prioritary=False),
        name='beta-view-container'),
Ejemplo n.º 2
0
from zds.tutorialv2.views.views_published import SendNoteFormView, UpvoteReaction, DownvoteReaction, UpdateNoteView, \
    HideReaction, ShowReaction, SendNoteAlert, SolveNoteAlert

urlpatterns = patterns(
    '',
    url(r'^tutoriels/(?P<pk>\d+)/$',
        ContentOfAuthor.as_view(type='TUTORIAL',
                                context_object_name='tutorials'),
        name="find-tutorial"),
    url(r'^articles/(?P<pk>\d+)/$',
        ContentOfAuthor.as_view(type='ARTICLE',
                                context_object_name='articles'),
        name="find-article"),
    url(r'^aides/$', ContentsWithHelps.as_view(), name='helps'),
    url(r'^(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$',
        DisplayContainer.as_view(),
        name='view-container'),
    url(r'^(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        DisplayContainer.as_view(),
        name='view-container'),
    url(r'^(?P<pk>\d+)/(?P<slug>.+)/$', DisplayContent.as_view(), name='view'),
    url(r'^telecharger/(?P<pk>\d+)/(?P<slug>.+)/$',
        DownloadContent.as_view(),
        name='download-zip'),

    # beta:
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(),
        name='beta-view-container'),
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(),