コード例 #1
0
ファイル: urls_contents.py プロジェクト: rezemika/zds-site
        r'(?P<container_slug>.+)/(?P<extract_slug>.+)/$',
        EditExtract.as_view(),
        name='edit-extract'),
    url(r'^editer-section/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/(?P<extract_slug>.+)/$',
        EditExtract.as_view(),
        name='edit-extract'),
    url(r'^editer-section/(?P<pk>\d+)/(?P<slug>.+)/(?P<extract_slug>.+)/$',
        EditExtract.as_view(),
        name='edit-extract'),

    url(r'^editer/(?P<pk>\d+)/(?P<slug>.+)/$', EditContent.as_view(), name='edit'),
    url(r'^deplacer/$', MoveChild.as_view(), name='move-element'),

    url(r'^historique/(?P<pk>\d+)/(?P<slug>.+)/$', DisplayHistory.as_view(), name='history'),
    url(r'^comparaison/(?P<pk>\d+)/(?P<slug>.+)/$', DisplayDiff.as_view(), name='diff'),
    url(r'^ajouter-auteur/(?P<pk>\d+)/$', AddAuthorToContent.as_view(), name='add-author'),
    url(r'^enlever-auteur/(?P<pk>\d+)/$', RemoveAuthorFromContent.as_view(), name='remove-author'),
    # beta:
    url(r'^activer-beta/(?P<pk>\d+)/(?P<slug>.+)/$', ManageBetaContent.as_view(action='set'),
        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'),
コード例 #2
0
        name='edit-extract'),
    url(r'^editer-section/(?P<pk>\d+)/(?P<slug>.+)/(?P<extract_slug>.+)/$',
        EditExtract.as_view(),
        name='edit-extract'),
    url(r'^editer/(?P<pk>\d+)/(?P<slug>.+)/$',
        EditContent.as_view(),
        name='edit'),
    url(r'^deplacer/$', MoveChild.as_view(), name='move-element'),
    url(r'^historique/(?P<pk>\d+)/(?P<slug>.+)/$',
        DisplayHistory.as_view(),
        name="history"),
    url(r'^comparaison/(?P<pk>\d+)/(?P<slug>.+)/$',
        DisplayDiff.as_view(),
        name="diff"),
    url(r'^ajouter-auteur/(?P<pk>\d+)/$',
        AddAuthorToContent.as_view(),
        name="add-author"),
    url(r'^enlever-auteur/(?P<pk>\d+)/$',
        RemoveAuthorFromContent.as_view(),
        name="remove-author"),
    # beta:
    url(r'^activer-beta/(?P<pk>\d+)/(?P<slug>.+)/$',
        ManageBetaContent.as_view(action='set'),
        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(),