Example #1
0
    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(),
        name="add-reaction"),
    url(r'^reactions/editer/$',
        UpdateNoteView.as_view(),
        name="update-reaction"),
    url(r'^reactions/upvote/$', UpvoteReaction.as_view(), name="up-vote"),
    url(r'^reactions/downvote/$', DownvoteReaction.as_view(),
        name="down-vote"),
    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(),
Example #2
0
    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'),

    # follow:
    url(r'^suivre/(?P<pk>\d+)/reactions/$', FollowContentReaction.as_view(), name='follow-reactions'),
    url(r'^suivre/membres/(?P<pk>\d+)/$', FollowNewContent.as_view(), name='follow'),

    # content alerts:
    url(r'^alerter/(?P<pk>\d+)/$', SendContentAlert.as_view(), name='alert-content'),
    url(r'^resoudre/(?P<pk>\d+)/$', SolveContentAlert.as_view(), name='resolve-content'),

    # typo:
    url(r'^reactions/typo/$', WarnTypo.as_view(), name='warn-typo'),
Example #3
0
        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:
    # for all those views, we do not need to redirect to the newest PublishedContent
    # because they just must depend on PublishableContent pk, not slug nor PublishedContent model
    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/upvote/$', UpvoteReaction.as_view(), name="up-vote"),
    url(r'^reactions/downvote/$', DownvoteReaction.as_view(),
        name="down-vote"),
    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(),