Changeset 343 in main


Ignore:
Timestamp:
09/27/11 16:39:09 (8 years ago)
Author:
pcosquer
Message:

fix api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/urls.py

    r339 r343  
    152152# urls related to the api 
    153153api_url = r'^api/object/(?P<doc_id>\d+)/' 
    154 urlpatterns += patterns('api/', 
    155     (r'^login/', api.api_login), 
    156     (r'^needlogin/', api.need_login), 
    157     (r'^testlogin/', api.test_login), 
    158     (r'^types/$', api.get_all_types), 
    159     (r'^parts/$', api.get_all_parts), 
    160     (r'^doc(?:ument)?s/$', api.get_all_docs), 
    161     (r'^search/$', api.search), 
    162     (r'^search/(?P<editable_only>true|false)/$', api.search), 
    163     (r'^search/(?P<editable_only>true|false)/(?P<with_file_only>true|false)/$', 
     154urlpatterns += patterns2('', '^api/', 
     155    (r'login/', api.api_login), 
     156    (r'needlogin/', api.need_login), 
     157    (r'testlogin/', api.test_login), 
     158    (r'types/$', api.get_all_types), 
     159    (r'parts/$', api.get_all_parts), 
     160    (r'doc(?:ument)?s/$', api.get_all_docs), 
     161    (r'search/$', api.search), 
     162    (r'search/(?P<editable_only>true|false)/$', api.search), 
     163    (r'search/(?P<editable_only>true|false)/(?P<with_file_only>true|false)/$', 
    164164     api.search), 
    165     (r'^create/$', api.create), 
    166     (r'^search_fields/(?P<typename>[\w_]+)/$', api.get_search_fields), 
    167     (r'^creation_fields/(?P<typename>[\w_]+)/$', api.get_creation_fields), 
     165    (r'create/$', api.create), 
     166    (r'search_fields/(?P<typename>[\w_]+)/$', api.get_search_fields), 
     167    (r'creation_fields/(?P<typename>[\w_]+)/$', api.get_creation_fields), 
    168168    ) 
    169169 
    170 urlpatterns += patterns(api_url, 
     170urlpatterns += patterns2('', api_url, 
    171171    (r'files/$', api.get_files), 
    172172    (r'files/(?P<all_files>all)/$', api.get_files), 
Note: See TracChangeset for help on using the changeset viewer.