src/jocondelab/urls.py
author veltr
Tue, 20 Aug 2013 18:54:03 +0200
changeset 96 eca960eac58b
parent 87 70cc8154164c
child 97 e7c675c54816
permissions -rw-r--r--
Added Geo and Years tables
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
     1
from jocondelab.views.back_office import (TermListView, TermEditView, TermModifyWpLink, 
35
859862939996 add qualifier on the wikipedia link
ymh <ymh.work@gmail.com>
parents: 26
diff changeset
     2
    TermRemoveWpLink, TermValidate, TermWikipediaEdition, 
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
     3
    TermLinkSemanticLevelEdition, ThesaurusTree, TermListTableView)
87
70cc8154164c Added notice view
veltr
parents: 86
diff changeset
     4
from jocondelab.views.front_office import (MultilingualSearch, NoticeView)
67
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     5
from core import urls as core_urls
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
from django.conf.urls import patterns, include, url
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
from django.contrib import admin
67
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     8
from django.contrib.auth import urls as auth_urls
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
from django.contrib.auth.decorators import login_required
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
15
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    11
js_info_dict = {
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    12
    'packages': ('core', 'jocondelab'),
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    13
}
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    14
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
admin.autodiscover()
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
urlpatterns = patterns('',    
67
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
    18
    url(r'^auth/', include(auth_urls)),
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
    19
    url(r'^core/', include(core_urls)),    
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name='joconde_logout'),
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    url(r'^admin/', include(admin.site.urls)),
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
    22
    url(r'^i18n/', include('django.conf.urls.i18n')),
15
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    23
    url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    url(r'^$', login_required(TermListView.as_view()), name='home'),
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
    25
    url(r'^bo/$', login_required(TermListView.as_view()), name='bo_home'),
5
580fd386c4b9 Improve design, add context
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    26
    url(r'^bo/term/list/table$', login_required(TermListTableView.as_view()), name='term_list_table'),
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
    27
    url(r'^bo/term/(?P<term_id>\d+)/$', login_required(TermEditView.as_view()), name='term'),
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    url(r'^bo/term/modify-wp/$', login_required(TermModifyWpLink.as_view()), name='modify_wp_link'),
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
    url(r'^bo/term/remove-wp/$', login_required(TermRemoveWpLink.as_view()), name='remove_wp_link'),
26
758b9289aa9a add check box to indicate that a wk page should be created
ymh <ymh.work@gmail.com>
parents: 15
diff changeset
    30
    url(r'^bo/term/edition-wp/$', login_required(TermWikipediaEdition.as_view()), name='edition_wp_link'),
35
859862939996 add qualifier on the wikipedia link
ymh <ymh.work@gmail.com>
parents: 26
diff changeset
    31
    url(r'^bo/term/edition-link-level/$', login_required(TermLinkSemanticLevelEdition.as_view()), name='editon_link_semantic_level'),
62
33fd91a414cc selection dialog for thesaurus tree
ymh <ymh.work@gmail.com>
parents: 35
diff changeset
    32
    url(r'^bo/term/validate/$', login_required(TermValidate.as_view()), name='validate_term'),
86
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
    33
    url(r'^bo/tree/(?P<thes_id>\d+)/$', login_required(ThesaurusTree.as_view()), name='term_tree'),
bf707ad8aa1a 1st version of multilingual home
veltr
parents: 67
diff changeset
    34
    url(r'^mlsearch/$', MultilingualSearch.as_view(), name='multilingual_search'),
87
70cc8154164c Added notice view
veltr
parents: 86
diff changeset
    35
    url(r'^notice/(?P<notice_id>\d+)/$', NoticeView.as_view(), name='front_notice'),
96
eca960eac58b Added Geo and Years tables
veltr
parents: 87
diff changeset
    36
    url(r'^ajax/years/$', 'jocondelab.views.ajax.years', name='ajax_years'),
eca960eac58b Added Geo and Years tables
veltr
parents: 87
diff changeset
    37
    url(r'^ajax/geocoords/$', 'jocondelab.views.ajax.geo_coords', name='ajax_geo_coords'),
eca960eac58b Added Geo and Years tables
veltr
parents: 87
diff changeset
    38
    url(r'^ajax/contents/$', 'jocondelab.views.ajax.contents_by_term', name='ajax_contents_by_term')
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
)
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40