Ejemplo n.º 1
0
 url(r"^entry/feed/$", EntryFeed(), name="data-entry-feed"),
 url(r"^entry/(?P<slug>.+)", EntryView.as_view(), name="detail-entry"),  #  Alternative detail entry accepting slug.
 url(r"^hierarchy/list/$", HierarchyList.as_view(), name="list-hierarchy"),
 ## Function-Views:
 url(r"^entries/$", "entries", name="entries"),
 url(r"^hierarchy/$", "hierarchy", name="hierarchy"),
 url(r"^entry/(?P<slug>.+)", "entry", name="data_entry"),  # Classic view.
 url(r"^entry/add", "add_entry", name="add_entry"),
 url(r"^entry/edit", "edit_entry", name="edit_view"),
 url(r"^entry/remove", "remove_entry", name="remove_entry"),
 url(
     r"^entry/breadcrump/(?P<slug>.+)", "breadcrump", name="breadcrump"
 ),  # An experimental view to display breadcrump.
 # Changes:
 ## Class-Views
 url(r"^changes/list/$", ChangeList.as_view(), name="list-changes"),
 url(r"^change/details/(?P<pk>\d+)", DetailView.as_view(model=Change), name="detail-change"),  # detail-change
 url(r"^change/delete/(?P<pk>\d+)", DeleteView.as_view(model=Change), name="delete-change"),
 ## Function-Views:
 url(r"^changes/(?P<pk>\d*)", "changes", name="changes"),
 url(r"^change/remove/(?P<slug>.+)/$", "remove_change", name="remove_change"),
 url(r"^change/feed/$", ChangeFeed(), name="data-change-feed"),
 url(r"^change/(?P<pk>\d*)/$", ChangeView.as_view(), name="change"),
 url(r"^change/(?P<slug>.+)/$", ChangeView.as_view(), name="change"),
 # Relations:
 ## Class-Views
 url(r"^relations/list", RelationList.as_view(), name="list-relations"),
 url(r"^relation/(?P<pk>\d+)", DetailView.as_view(model=Relation), name="relation-details"),
 url(r"^relation/create", RelationCreate.as_view(), name="create-relation"),
 url(r"^relation/update/(?P<pk>\d+)", login_required(RelationUpdate.as_view()), name="update-relation"),
 url(r"^relation/delete", login_required(DeleteView.as_view(model=Relation)), name="delete-relation"),
Ejemplo n.º 2
0
    url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),

    ## Function-Views:
    url(r'^entries/$', 'entries', name='entries'),
    url(r'^hierarchy/$', 'hierarchy', name='hierarchy'),
    url(r'^entry/(?P<slug>.+)/?$', 'entry',
        name='data_entry'),  # Classic view.
    url(r'^entry/add', 'add_entry', name='add_entry'),
    url(r'^entry/edit', 'edit_entry', name='edit_view'),
    url(r'^entry/remove', 'remove_entry', name='remove_entry'),
    url(r'^entry/breadcrump/(?P<slug>.+)', 'breadcrump',
        name='breadcrump'),  # An experimental view to display breadcrump.

    # Changes:
    ## Class-Views
    url(r'^changes/list/$', ChangeList.as_view(), name='list-changes'),
    url(r'^change/details/(?P<pk>\d+)',
        DetailView.as_view(model=Change),
        name='detail-change'),  #detail-change
    url(r'^change/delete/(?P<pk>\d+)',
        DeleteView.as_view(model=Change),
        name='delete-change'),
    ## Function-Views:
    url(r'^changes/(?P<pk>\d*)', 'changes', name='changes'),
    url(r'^change/remove/(?P<slug>.+)/$',
        'remove_change',
        name='remove_change'),
    url(r'^change/feed/$', ChangeFeed(), name='data-change-feed'),
    url(r'^change/(?P<pk>\d*)/$', ChangeView.as_view(), name='change'),
    url(r'^change/(?P<slug>.+)/$', ChangeView.as_view(), name='change'),
Ejemplo n.º 3
0
    url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), #  Alternative detail entry accepting slug.
    url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),


    ## Function-Views:
    url(r'^entries/$', 'entries', name='entries'),
    url(r'^hierarchy/$', 'hierarchy', name='hierarchy'),
    url(r'^entry/(?P<slug>.+)/?$', 'entry', name='data_entry'), # Classic view.
    url(r'^entry/add', 'add_entry', name='add_entry'),
    url(r'^entry/edit', 'edit_entry', name='edit_view'),
    url(r'^entry/remove', 'remove_entry', name='remove_entry'),
    url(r'^entry/breadcrump/(?P<slug>.+)', 'breadcrump', name='breadcrump'), # An experimental view to display breadcrump.

    # Changes:
    ## Class-Views
    url(r'^changes/list/$', ChangeList.as_view(), name='list-changes'),
    url(r'^change/details/(?P<pk>\d+)', DetailView.as_view(model=Change), name='detail-change'), #detail-change
    url(r'^change/delete/(?P<pk>\d+)', DeleteView.as_view(model=Change), name='delete-change'),
    ## Function-Views:
    url(r'^changes/(?P<pk>\d*)', 'changes', name='changes'),
    url(r'^change/remove/(?P<slug>.+)/$', 'remove_change', name='remove_change'),
    url(r'^change/feed/$', ChangeFeed(), name='data-change-feed'),
    url(r'^change/(?P<pk>\d*)/$', ChangeView.as_view(), name='change'),
    url(r'^change/(?P<slug>.+)/$', ChangeView.as_view(), name='change'),

    # Relations:
    ## Class-Views
    url(r'^relations/list', RelationList.as_view(), name='list-relations'),
    url(r'^relation/generate/(?P<source>.+)/(?P<type>.+)/(?P<target>.+)',
        login_required(GenerateRelation.as_view()), name='generate-relation'),
    url(r'^relation/(?P<pk>\d+)', DetailView.as_view(model=Relation), name='relation-details'),
Ejemplo n.º 4
0
    url(r'^entry/(?P<slug>.+)', EntryView.as_view(), name='detail-entry'), #  Alternative detail entry accepting slug.
    url(r'^hierarchy/list/$', HierarchyList.as_view(), name='list-hierarchy'),


    ## Function-Views:
    url(r'^entries/$', 'entries', name='entries'),
    url(r'^hierarchy/$', 'hierarchy', name='hierarchy'),
    url(r'^entry/(?P<slug>.+)/?$', 'entry', name='data_entry'), # Classic view.
    url(r'^entry/add', 'add_entry', name='add_entry'),
    url(r'^entry/edit', 'edit_entry', name='edit_view'),
    url(r'^entry/remove', 'remove_entry', name='remove_entry'),
    url(r'^entry/breadcrump/(?P<slug>.+)', 'breadcrump', name='breadcrump'), # An experimental view to display breadcrump.

    # Changes:
    ## Class-Views
    url(r'^changes/list/$', login_required(ChangeList.as_view()), name='list-changes'),
    url(r'^change/details/(?P<pk>\d+)', DetailView.as_view(model=Change), name='detail-change'), #detail-change
    url(r'^change/delete/(?P<pk>\d+)', DeleteView.as_view(model=Change), name='delete-change'),
    ## Function-Views:
    url(r'^changes/(?P<pk>\d*)', 'changes', name='changes'),
    url(r'^change/remove/(?P<slug>.+)/$', 'remove_change', name='remove_change'),
    url(r'^change/feed/$', ChangeFeed(), name='data-change-feed'),
    url(r'^change/(?P<pk>\d*)/$', ChangeView.as_view(), name='change'),
    url(r'^change/(?P<slug>.+)/$', ChangeView.as_view(), name='change'),

    # Relations:
    ## Class-Views
    url(r'^relations/list', RelationList.as_view(), name='list-relations'),
    url(r'^relation/generate/(?P<source>.+)/(?P<type>.+)/(?P<target>.+)',
        login_required(GenerateRelation.as_view()), name='generate-relation'),
    url(r'^relation/(?P<pk>\d+)', DetailView.as_view(model=Relation), name='relation-details'),