示例#1
0
    url(r'^editer-conteneur/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        EditContainer.as_view(),
        name='edit-container'),

    url(r'^editer-section/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/'
        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'),
示例#2
0
 url(r'^editer-conteneur/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
     EditContainer.as_view(),
     name='edit-container'),
 url(
     r'^editer-section/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/'
     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: