Ejemplo n.º 1
0
        name='set-beta'),
    url(r'^desactiver-beta/(?P<pk>\d+)/(?P<slug>.+)/$', ManageBetaContent.as_view(action='inactive'),
        name='inactive-beta'),

    # jsfiddle support:
    url(r'activer-js/', ActivateJSFiddleInContent.as_view(), name='activate-jsfiddle'),

    # delete:
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/'
        r'(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),

    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/$', DeleteContent.as_view(), name='delete'),

    # markdown import
    url(r'^importer/archive/nouveau/$', CreateContentFromArchive.as_view(), name='import-new'),
    url(r'^importer/(?P<pk>\d+)/(?P<slug>.+)/$', UpdateContentWithArchive.as_view(), name='import'),

    # tags
    url(r'^tags/$', TagsListView.as_view(), name='tags'),

    url(r'^$', ListOnlineContents.as_view(), name='list'),
]
Ejemplo n.º 2
0
        name="inactive-beta"),

    # jsfiddle support:
    url(r'activer-js/',
        ActivateJSFiddleInContent.as_view(),
        name="activate-jsfiddle"),

    # delete:
    url(
        r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/'
        r'(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/(?P<object_slug>.+)/$',
        DeleteContainerOrExtract.as_view(),
        name='delete'),
    url(r'^supprimer/(?P<pk>\d+)/(?P<slug>.+)/$',
        DeleteContent.as_view(),
        name='delete'),

    # markdown import
    url(r'^importer/archive/nouveau/$',
        CreateContentFromArchive.as_view(),
        name="import-new"),
    url(r'^importer/(?P<pk>\d+)/(?P<slug>.+)/$',
        UpdateContentWithArchive.as_view(),
        name="import"))