source: main/trunk/openPLM/urls.py @ 65

Revision 65, 1.8 KB checked in by pjoulaud, 11 years ago (diff)

Addition of files upload/deletion in a document

Line 
1from django.conf.urls.defaults import *
2from openPLM.plmapp.views import *
3from django.contrib.auth.views import login, logout
4
5# Uncomment the next two lines to enable the admin:
6from django.contrib import admin
7admin.autodiscover()
8
9urlpatterns = patterns('',
10    (r'^admin/', include(admin.site.urls)),
11
12    (r'^bollox/', display_bollox),
13    (r'^login/', login, {'template_name': 'DisplayLoginPage.htm', }),
14    (r'^logout/', logout, {'next_page': 'http://www.google.fr', }),
15    (r'^home/', display_home_page),
16    (r'^object/([^/]+)/([^/]+)/([^/]+)/$', display_object),
17    (r'^object/([^/]+)/([^/]+)/([^/]+)/attributes/$', display_object),
18    (r'^object/([^/]+)/([^/]+)/([^/]+)/lifecycle/$', display_object_lifecycle),
19    (r'^object/([^/]+)/([^/]+)/([^/]+)/revisions/$', display_object_revisions),
20    (r'^object/([^/]+)/([^/]+)/([^/]+)/history/$', display_object_history),
21    (r'^object/([^/]+)/([^/]+)/([^/]+)/BOM-child/$', display_object_child),
22    (r'^object/([^/]+)/([^/]+)/([^/]+)/BOM-child/edit/$', edit_children),
23    (r'^object/([^/]+)/([^/]+)/([^/]+)/BOM-child/add/$', add_children),
24    (r'^object/([^/]+)/([^/]+)/([^/]+)/parents/$', display_object_parents),
25    (r'^object/([^/]+)/([^/]+)/([^/]+)/doc-cad/$', display_object_doc_cad),
26    (r'^object/([^/]+)/([^/]+)/([^/]+)/doc-cad/add/$', add_doc_cad),
27    (r'^object/([^/]+)/([^/]+)/([^/]+)/parts/$', display_related_part),
28    (r'^object/([^/]+)/([^/]+)/([^/]+)/parts/add/$', add_rel_part),
29    (r'^object/([^/]+)/([^/]+)/([^/]+)/files/$', display_files),
30    (r'^object/([^/]+)/([^/]+)/([^/]+)/files/add/$', add_file),
31    (r'^object/([^/]+)/([^/]+)/([^/]+)/modify/$', modify_object),
32    (r'^object/create/$', create_object),
33
34        # In order to take into account the css file
35    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root' : 'media/'})
36)
Note: See TracBrowser for help on using the repository browser.