| author | cavaliet |
| Wed, 03 Sep 2014 16:43:52 +0200 | |
| changeset 327 | 3684db1579ff |
| parent 318 | 25c28dd19898 |
| child 329 | ea6268cf8c83 |
| permissions | -rw-r--r-- |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
# -*- coding: utf-8 -*- |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
272
diff
changeset
|
2 |
from django.conf.urls import patterns, include, url |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
3 |
from django.views.generic import TemplateView |
| 300 | 4 |
from hdalab.views.profile import ProfileHome, RenkanEdit, HdalabRenkanGetPut,\ |
| 301 | 5 |
RenkanNew, RenkanPublicList, HdalabRenkanCopy, HdalabRenkanDelete |
6 |
from django.contrib.auth.decorators import login_required |
|
| 327 | 7 |
from hdalab.views.editorial import HdalabFolders, HdalabAddOrUpdateFolder,\ |
8 |
HdalabDeleteFolder |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
# Uncomment the next two lines to enable the admin: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
# from django.contrib import admin |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
# admin.autodiscover() |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
urlpatterns = patterns('', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
# Examples: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
# url(r'^$', 'hdalab.views.home', name='home'), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
# url(r'^hdalab/', include('hdalab.foo.urls')), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
# Uncomment the next line to enable the admin: |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
272
diff
changeset
|
23 |
#url(r'^admin/', include(admin.site.urls)), |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
308
diff
changeset
|
25 |
url(r'^hdabo/', include('hdabo.urls')), |
| 135 | 26 |
url(r'^i18n/', include('django.conf.urls.i18n')), |
27 |
url('^jsi18n/?$', 'django.views.i18n.javascript_catalog', name='jsi18n.all'), |
|
28 |
url('^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog', {'domain':'djangojs'}, name='jsi18n'), |
|
29 |
||
| 131 | 30 |
url(r'^facettes/', TemplateView.as_view(template_name="facettes.html"), name='facettes'), |
| 205 | 31 |
url(r'^categories/', TemplateView.as_view(template_name="categories.html"), name='categories'), |
| 252 | 32 |
url(r'^thesaurus/', TemplateView.as_view(template_name="thesaurus.html"), name='thesaurus'), |
| 131 | 33 |
url(r'^$', TemplateView.as_view(template_name="index.html"), name='home'), |
| 253 | 34 |
|
|
288
0bb9c29cd41d
renkan first step : link, views and get put for json
cavaliet
parents:
279
diff
changeset
|
35 |
url(r'^notice/(?P<hda_id>[\w-]+)$', 'hdalab.views.pages.datasheet', name='notice'), |
|
0bb9c29cd41d
renkan first step : link, views and get put for json
cavaliet
parents:
279
diff
changeset
|
36 |
|
| 301 | 37 |
url(r'^renkan/new/$',login_required(RenkanNew.as_view()), name='renkan_new'), |
|
302
106c33871db4
better presentation and automatic save for renkan from facettes
cavaliet
parents:
301
diff
changeset
|
38 |
url(r'^renkan/edit/$', RenkanEdit.as_view(), name='renkan_edit'), |
|
299
8e00641076e7
remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents:
298
diff
changeset
|
39 |
url(r'^renkan/getput/$', HdalabRenkanGetPut.as_view(), name='renkan_get_put'), |
| 298 | 40 |
url(r'^renkan/view/$', TemplateView.as_view(template_name="renkan_view.html"), name='renkan_view'), |
| 301 | 41 |
url(r'^renkan/copy/(?P<rk_id>.*)$', login_required(HdalabRenkanCopy.as_view()), name='renkan_copy'), |
42 |
url(r'^renkan/delete/(?P<rk_id>.*)$', login_required(HdalabRenkanDelete.as_view()), name='renkan_delete'), |
|
43 |
url(r'^profile/$', login_required(ProfileHome.as_view()), name='profile_home'), |
|
44 |
url(r'^renkan/public/$', RenkanPublicList.as_view(), name='renkan_public_list'), |
|
| 308 | 45 |
url(r'^ajaxlogin/$', "hdalab.views.profile.ajax_login", name='ajax_login'), |
46 |
url(r'^ajaxloginok/$', TemplateView.as_view(template_name="ajax_identification/ajax_login_ok.html"), name='ajax_login_ok'), |
|
| 327 | 47 |
url(r'^edito/folders/$', login_required(HdalabFolders.as_view()), name='hdalab_folders'), |
48 |
url(r'^edito/folder/$', login_required(HdalabAddOrUpdateFolder.as_view()), name='hdalab_add_or_update_folder'), |
|
49 |
url(r'^edito/folder/(?P<folder_pk>[\w-]+)$', login_required(HdalabAddOrUpdateFolder.as_view()), name='hdalab_add_or_update_folder'), |
|
50 |
url(r'^edito/deletefolder/(?P<folder_pk>[\w-]+)$', login_required(HdalabDeleteFolder.as_view()), name='hdalab_delete_folder'), |
|
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
51 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
52 |
) |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
53 |
|
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
54 |
urlpatterns += patterns('hdalab.views.ajax', |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
55 |
(r'^a/filter$', 'filter', {}, 'filter'), |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
56 |
(r'^a/sessioninfo$', 'sessioninfo', {}, 'session_info'), |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
57 |
(r'^a/tagsearch$', 'tagsearch', {}, 'tag_search'), |
| 205 | 58 |
(r'^a/catsearch$', 'catsearch', {}, 'cat_search'), |
59 |
(r'^a/cattree$', 'cattree', {}, 'cat_tree'), |
|
| 248 | 60 |
(r'^a/filltree$', 'filltree', {}, 'fill_tree'), |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
61 |
) |