1 from django
.conf
.urls
.defaults
import *
3 urlpatterns
= patterns('',
6 r
'^w/ajax/word/(?:add|remove)-(?:synonym|thesaurus|antonym|translation|rhyme|related)/$',
7 'worddb.utils.ajax_form_handler',
8 { 'form_cls': 'worddb.words.forms.AlterM2MRelationForm' }
11 r
'^w/ajax/word/change-language/$', 'worddb.utils.ajax_form_handler',
12 { 'form_cls': 'worddb.words.forms.ChangeLanguageForm' }
15 r
'^w/ajax/word/update-etymology/$', 'worddb.utils.ajax_form_handler',
16 { 'form_cls': 'worddb.words.forms.UpdateEtymologyForm' }
19 r
'^w/ajax/word/add-pronunciation/$', 'worddb.utils.ajax_form_handler',
20 { 'form_cls': 'worddb.words.forms.AddPronunciation' }
23 r
'^w/ajax/word/remove-pronunciation/$',
24 'worddb.utils.ajax_form_handler',
25 { 'form_cls': 'worddb.words.forms.RemovePronunciation' }
28 r
'^w/ajax/word/edit-pronunciation/$', 'worddb.utils.ajax_form_handler',
29 { 'form_cls': 'worddb.words.forms.EditPronunciation' }
32 r
'^w/ajax/word/add-meaning/$', 'worddb.utils.ajax_form_handler',
33 { 'form_cls': 'worddb.words.forms.AddMeaning' }
36 r
'^w/ajax/word/remove-meaning/$', 'worddb.utils.ajax_form_handler',
37 { 'form_cls': 'worddb.words.forms.RemoveMeaning' }
40 r
'^w/ajax/word/update-meaning/$',
41 'worddb.utils.ajax_form_handler',
42 { 'form_cls': 'worddb.words.forms.UpdateMeaning' }
45 r
'^w/ajax/word/add-form/$', 'worddb.utils.ajax_form_handler',
46 { 'form_cls': 'worddb.words.forms.AddWordForm' }
49 r
'^w/ajax/word/remove-form/$', 'worddb.utils.ajax_form_handler',
50 { 'form_cls': 'worddb.words.forms.RemoveWordForm' }
53 r
'^w/ajax/word/add/$', 'worddb.utils.ajax_form_handler',
54 { 'form_cls': 'worddb.words.forms.AddWord' }
57 # this should match everything, and thus should come at last.
58 (r
'^(?P<wordname>[^/]+)/$', 'worddb.words.views.view'),
59 (r
'^w/ajax/search/$', 'worddb.words.views.search_ajax'),
60 (r
'^w/ajax/get-translations/$', 'worddb.words.views.get_translations_ajax'),
61 (r
'^w/ajax/get-languages/$', 'worddb.words.views.get_languages_ajax'),