Ejemplo n.º 1
0
    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'),
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(public_is_prioritary=False),
        name='beta-view-container'),

    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/$', DisplayBetaContent.as_view(), name='beta-view'),

    # reactions:
    url(r'^reactions/ajouter/$', SendNoteFormView.as_view(redirection_is_needed=False), name='add-reaction'),
    url(r'^reactions/editer/$', UpdateNoteView.as_view(redirection_is_needed=False), name='update-reaction'),
    url(r'^reactions/cacher/(?P<pk>\d+)/$', HideReaction.as_view(), name='hide-reaction'),
    url(r'^reactions/afficher/(?P<pk>\d+)/$', ShowReaction.as_view(), name='show-reaction'),
    url(r'^reactions/alerter/(?P<pk>\d+)/$', SendNoteAlert.as_view(), name='alert-reaction'),
    url(r'^reactions/resoudre/$', SolveNoteAlert.as_view(), name='resolve-reaction'),
Ejemplo n.º 2
0
        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(),
        name='beta-view-container'),
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/$',
        DisplayBetaContent.as_view(),
        name='beta-view'),

    # reactions:
    url(r'^reactions/ajouter/$',
        SendNoteFormView.as_view(),
        name="add-reaction"),
    url(r'^reactions/editer/$',
        UpdateNoteView.as_view(),
        name="update-reaction"),