src/cm/api/urls.py
changeset 293 2c52e4453bf7
parent 287 fc5ed157ebfe
child 415 bacf162c7b58
equal deleted inserted replaced
292:3442202aff1a 293:2c52e4453bf7
    10 textversion_handler = Resource(handler=TextVersionHandler, authentication=auth)
    10 textversion_handler = Resource(handler=TextVersionHandler, authentication=auth)
    11 text_list_handler = Resource(handler=TextListHandler, authentication=auth)
    11 text_list_handler = Resource(handler=TextListHandler, authentication=auth)
    12 text_delete_handler = Resource(handler=TextDeleteHandler, authentication=auth)
    12 text_delete_handler = Resource(handler=TextDeleteHandler, authentication=auth)
    13 text_pre_edit_handler = Resource(handler=TextPreEditHandler, authentication=auth)
    13 text_pre_edit_handler = Resource(handler=TextPreEditHandler, authentication=auth)
    14 text_edit_handler = Resource(handler=TextEditHandler, authentication=auth)
    14 text_edit_handler = Resource(handler=TextEditHandler, authentication=auth)
    15 setuser_handler = Resource(handler=SetUserHandler, authentication=None)
    15 text_feed_handler = Resource(handler=TextFeedHandler, authentication=auth)
       
    16 
       
    17 tv_revert_handler = Resource(handler=TextVersionRevertHandler, authentication=auth)
       
    18 tv_delete_handler = Resource(handler=TextVersionDeleteHandler, authentication=auth)
       
    19 
       
    20 text_export_handler = Resource(handler=TextExportHandler, authentication=auth)
       
    21 
       
    22 comments_handler = Resource(handler=CommentsHandler, authentication=auth)
       
    23 
       
    24 client_handler = Resource(handler=ClientHandler, authentication=auth)
       
    25 
       
    26 jsi8n_handler = Resource(handler=JSI18NHandler, authentication=None)
       
    27 
       
    28 comment_frame_handler = Resource(handler=CommentFrameHandler, authentication=auth)
       
    29 comment_handler = Resource(handler=CommentHandler, authentication=auth)
    16 
    30 
    17 #doc_handler = Resource(handler=DocHandler)
    31 #doc_handler = Resource(handler=DocHandler)
    18 
    32 
    19 urlpatterns = patterns('',
    33 urlpatterns = patterns('',
    20    url(r'^text/(?P<key>\w*)/$', text_handler),
    34    url(r'^text/(?P<key>\w*)/$', text_handler),
    21    url(r'^text/$', text_list_handler),
    35    url(r'^text/$', text_list_handler),
       
    36 
       
    37    url(r'^text/(?P<key>\w*)/(?P<version_key>\w*)/revert/$', tv_revert_handler),
       
    38    url(r'^text/(?P<key>\w*)/(?P<version_key>\w*)/delete/$', tv_delete_handler),
       
    39    
       
    40    url(r'^text/(?P<key>\w*)/comments_frame/$', comment_frame_handler),
       
    41    url(r'^text/(?P<key>\w*)/comments/(?P<version_key>\w*)/$', comment_handler),
       
    42    
       
    43    url(r'^text/(?P<key>\w*)/export/(?P<format>\w*)/(?P<download>\w*)/(?P<whichcomments>\w*)/(?P<withcolor>\w*)/$', text_export_handler),
       
    44 
       
    45    url(r'^text/(?P<key>\w*)/feed/$', text_feed_handler),
    22    url(r'^text/(?P<key>\w*)/delete/$', text_delete_handler),
    46    url(r'^text/(?P<key>\w*)/delete/$', text_delete_handler),
    23    url(r'^text/(?P<key>\w*)/pre_edit/$', text_pre_edit_handler),
    47    url(r'^text/(?P<key>\w*)/pre_edit/$', text_pre_edit_handler),
    24    url(r'^text/(?P<key>\w*)/edit/$', text_edit_handler),
    48    url(r'^text/(?P<key>\w*)/edit/$', text_edit_handler),
    25    url(r'^text/(?P<key>\w*)/(?P<version_key>\w*)/$', textversion_handler),
    49    url(r'^text/(?P<key>\w*)/(?P<version_key>\w*)/$', textversion_handler),
    26    url(r'^setuser/$', setuser_handler),
    50    url(r'^comments/$', comments_handler),
       
    51    url(r'^client/$', client_handler),
       
    52    url(r'^jsi18n/$', jsi8n_handler),
    27    url(r'^doc/$', documentation),
    53    url(r'^doc/$', documentation),
    28 )
    54 )