16 |
16 |
17 tv_revert_handler = Resource(handler=TextVersionRevertHandler, authentication=auth) |
17 tv_revert_handler = Resource(handler=TextVersionRevertHandler, authentication=auth) |
18 tv_delete_handler = Resource(handler=TextVersionDeleteHandler, authentication=auth) |
18 tv_delete_handler = Resource(handler=TextVersionDeleteHandler, authentication=auth) |
19 |
19 |
20 text_export_handler = Resource(handler=TextExportHandler, authentication=auth) |
20 text_export_handler = Resource(handler=TextExportHandler, authentication=auth) |
|
21 import_handler = Resource(handler=ImportHandler, authentication=auth) |
21 |
22 |
22 comments_handler = Resource(handler=CommentsHandler, authentication=auth) |
23 comments_handler = Resource(handler=CommentsHandler, authentication=auth) |
23 |
24 |
24 convert_handler = Resource(handler=ConvertHandler, authentication=auth) |
25 convert_handler = Resource(handler=ConvertHandler, authentication=auth) |
25 |
26 |
41 |
42 |
42 url(r'^text/(?P<key>\w*)/comments_frame/$', comment_frame_handler), |
43 url(r'^text/(?P<key>\w*)/comments_frame/$', comment_frame_handler), |
43 url(r'^text/(?P<key>\w*)/comments/(?P<version_key>\w*)/$', comment_handler), |
44 url(r'^text/(?P<key>\w*)/comments/(?P<version_key>\w*)/$', comment_handler), |
44 |
45 |
45 url(r'^text/(?P<key>\w*)/export/(?P<format>\w*)/(?P<download>\w*)/(?P<whichcomments>\w*)/(?P<withcolor>\w*)/$', text_export_handler), |
46 url(r'^text/(?P<key>\w*)/export/(?P<format>\w*)/(?P<download>\w*)/(?P<whichcomments>\w*)/(?P<withcolor>\w*)/$', text_export_handler), |
|
47 url(r'^import/$', import_handler), |
46 |
48 |
47 url(r'^text/(?P<key>\w*)/feed/$', text_feed_handler), |
49 url(r'^text/(?P<key>\w*)/feed/$', text_feed_handler), |
48 url(r'^text/(?P<key>\w*)/delete/$', text_delete_handler), |
50 url(r'^text/(?P<key>\w*)/delete/$', text_delete_handler), |
49 url(r'^text/(?P<key>\w*)/pre_edit/$', text_pre_edit_handler), |
51 url(r'^text/(?P<key>\w*)/pre_edit/$', text_pre_edit_handler), |
50 url(r'^text/(?P<key>\w*)/edit/$', text_edit_handler), |
52 url(r'^text/(?P<key>\w*)/edit/$', text_edit_handler), |