diff options
author | dhiru <dhirusingh11@gmail.com> | 2014-05-10 18:07:53 +0530 |
---|---|---|
committer | dhiru <dhirusingh11@gmail.com> | 2014-05-10 18:07:53 +0530 |
commit | 2dfdcce2c241d7b186377913b0b1046d0f7daa3a (patch) | |
tree | 69db98c5e7edb1b6c89fc1cf65af02ddb6676ec1 /gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py | |
parent | 6f5f14542e91720bce09092a143bd975926cda65 (diff) | |
download | gnowsys-2dfdcce2c241d7b186377913b0b1046d0f7daa3a.tar.gz |
generate new urls
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py index d7c8596..fd4e9e7 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/file.py @@ -3,16 +3,20 @@ from django.conf.urls import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('gnowsys_ndf.ndf.views.file', - url(r'^(?P<file_id>[\w-]+)$', 'file', name='file'), - url(r'^uploadDoc/$', 'uploadDoc', name='uploadDoc'), #Direct ot html template - url(r'^submitDoc/', 'submitDoc', name='submitDoc'), - url(r'^submit/', 'submitDoc', name='submitDoc'), - url(r'^documentList/', 'GetDoc', name='documentList'), - url(r'^readDoc/(?P<_id>[\w-]+)/(?:(?P<file_name>[^/]+))?$', 'readDoc', name='read_file'), - url(r'^search/$', 'file_search', name='file_search'), - url(r'^details/(?P<_id>[\w-]+)$', 'file_detail', name='file_detail'), - url(r'^thumbnail/(?P<_id>[\w-]+)$', 'getFileThumbnail', name='getFileThumbnail'), - url(r'^delete_file/(?P<_id>[\w-]+)$', 'delete_file', name='delete_file'), - url(r'^edit_file/(?P<_id>[\w-]+)$', 'file_edit', name='file_edit') + url(r'^$', 'file', name='file'), +# url(r'^/(?P<file_id>[\w-]+)$', 'file', name='file'), + url(r'^/uploadDoc/$', 'uploadDoc', name='uploadDoc'), #Direct ot html template + url(r'^/submitDoc/', 'submitDoc', name='submitDoc'), + url(r'^/submit/', 'submitDoc', name='submitDoc'), + url(r'^/documentList/', 'GetDoc', name='documentList'), + url(r'^/readDoc/(?P<_id>[\w-]+)/(?:(?P<file_name>[^/]+))?$', 'readDoc', name='read_file'), + url(r'^/search/$', 'file_search', name='file_search'), + url(r'^/details/(?P<_id>[\w-]+)$', 'file_detail', name='file_detail'), + url(r'^/(?P<_id>[\w-]+)$', 'file_detail', name='file_detail'), + url(r'^/thumbnail/(?P<_id>[\w-]+)$', 'getFileThumbnail', name='getFileThumbnail'), + url(r'^/delete_file/(?P<_id>[\w-]+)$', 'delete_file', name='delete_file'), + url(r'^/delete/(?P<_id>[\w-]+)$', 'delete_file', name='delete_file'), + url(r'^/edit_file/(?P<_id>[\w-]+)$', 'file_edit', name='file_edit'), + url(r'^/edit/(?P<_id>[\w-]+)$', 'file_edit', name='file_edit'), ) |