urls.py
4.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# -*- coding: utf-8 -*-
from django.conf.urls import *
from django.conf import settings
from common.util import url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^lexeme_forge/', include('lexeme_forge.foo.urls')),
url(r'^accounts/register/$', 'accounts.views.register'),
url(r'^accounts/settings/$', 'accounts.views.settings'),
url(r'^accounts/manage-groups/$',
'accounts.views.manage_groups'),
(r'^accounts/', include('registration.backends.default.urls')),
url(r'^ajax/history-table/$',
'dictionary.ajax_history.history_table'),
url(r'^ajax/prompter-list/$',
'dictionary.ajax_prompter.prompter_list'),
url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL.lstrip('/'),
'django.views.static.serve',
kwargs={'document_root': settings.MEDIA_ROOT}),
(r'^admin/', include(admin.site.urls)), # potrzebne do zmiany hasła
)
urlpatterns += patterns('dictionary.ajax_lexeme_view',
url(r'^ajax/inflection-tables/$', 'get_inflection_tables'),
url(r'^ajax/odm-forms/$', 'odm_forms'),
url(r'^ajax/lexeme-edit-form/$', 'lexeme_edit_form'),
url(r'^ajax/update-lexeme/$', 'update_lexeme'),
url(r'^ajax/table-preview/$', 'table_preview'),
url(r'^ajax/new-lip-row/$', 'new_lip_edit_row'),
url(r'^ajax/save-columns/$', 'save_columns'),
url(r'^ajax/add-vocabulary/$', 'add_vocabulary'),
url(r'^ajax/get-privileges/$', 'vocabulary_permissions'),
url(r'^ajax/set-privilege$', 'set_vocabulary_permission'),
url(r'^ajax/new-cr-row/$', 'new_cross_reference_row'),
url(r'^ajax/delete-lexeme/$', 'delete_lexeme'),
url(r'^ajax/check-pos/$', 'check_pos'),
url(r'^ajax/check-pattern/$', 'check_pattern'),
url(r'^ajax/check-classifications/$', 'check_classifications'),
url(r'^ajax/get-ics/$', 'get_ics'),
url(r'^ajax/create-lexeme/$', 'create_lexeme'),
url(r'^ajax/classification-forms/$', 'classification_forms'),
url(r'^ajax/extra-attributes/$', 'extra_attributes'),
url(r'^ajax/check-attributes/$', 'check_attributes'),
url(r'^ajax/homonym-count/$', 'homonym_count'),
url(r'^ajax/cr-homonyms/$', 'cr_homonyms'),
url(r'^ajax/new-action-row/$', 'new_action_row'),
url(r'^ajax/dynamic-fields/$', 'dynamic_action_fields'),
url(r'^ajax/execute-actions$', 'execute_group_actions'),
)
urlpatterns += patterns('dictionary.ajax_lexeme_slickgrid',
url(r'^ajax/lexemes/$', 'get_lexemes', name='get_lexemes'),
url(r'^ajax/search-index/$', 'search_index', name='search_index'),
url(r'^ajax/row-index/$', 'row_index', name='row_index'),
)
urlpatterns += patterns('dictionary.ajax_filters',
url(r'^ajax/save-filter/$', 'save_filter'),
url(r'^ajax/get-filters/$', 'get_filters'),
url(r'^ajax/delete-filter/$', 'delete_filter'),
)
urlpatterns += patterns('dictionary.ajax_pattern_view',
url(r'^ajax/patterns/objects/$', 'get_patterns'),
url(r'^ajax/patterns/search-index/$', 'search_index',
name='patterns_search_index'),
url(r'^ajax/patterns/save-columns/$', 'save_columns',
name='patterns_save_columns'),
url(r'^ajax/patterns/pattern-edit-form/$', 'pattern_edit_form'),
url(r'^ajax/patterns/new-ending-row/$', 'new_ending_row'),
url(r'^ajax/update-pattern/$', 'update_pattern'),
)
urlpatterns += patterns('dictionary.ajax_export',
url(r'^ajax/new-qualifier-row/$', 'magic_qualifier_row'),
url(r'^ajax/save-export-data/$', 'save_export_data'),
url(r'^ajax/get-export-data/$', 'get_export_data'),
url(r'^ajax/delete-export-data/$', 'delete_export_data'),
)
urlpatterns += patterns('dictionary.ajax_table_view',
url(r'^ajax/table-edit-form/$', 'table_edit_form'),
url(r'^ajax/template-preview-form/$', 'template_preview_form'),
url(r'^ajax/load-template-preview/$', 'template_preview'),
)
urlpatterns += patterns('accounts.ajax',
url(r'^ajax/set-group/$', 'set_group'),
url(r'^ajax/save-default-owner/$', 'save_default_owner'),
)
urlpatterns += patterns('dictionary.views',
url(r'^$', 'main'),
url(r'^leksemy/$', 'lexeme_view'),
url(r'^wzory/$', 'pattern_view'),
url(r'^zadania/$', 'tasks'),
url(r'^raporty/$', 'reports'),
url(r'^widok-wydawcy/$', 'manager_view'),
url(r'^klasyfikacje/$', 'manage_classifications'),
url(r'^kwalifikatory/$', 'manage_qualifiers'),
url(r'^tabelki/$', 'table_view'),
url(r'^historia/$', 'history_view'),
url(r'^eksport/$', 'export'),
url(r'^administracja/$', 'management_menu'),
url(r'^WSJP/(.+)/$', 'wsjp_table'),
url(r'^tables/$', 'show_new_tables'),
)
urlpatterns += patterns('paginer.ajax',
url(r'^ajax/get-page/$', 'get_page_content'),
url(r'^ajax/new-filter-row/$', 'new_filter_row'),
url(r'^ajax/dynamic-field/$', 'field_form'),
)