Mercurial > hg > agora-dellsystem
comparison apps/bundle/urls.py @ 189:4033ebe1867f
Add ability to download files
This makes use of a new model (BundleVersion) to keep track of the
locations on disk of the original uploads for each version. This will
require some manual processing to get it working for existing bundles,
since the information needed isn't being stored at the moment.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sun, 17 Feb 2013 14:57:39 -0500 |
parents | 86129d185ddb |
children |
comparison
equal
deleted
inserted
replaced
188:1eb652aa501a | 189:4033ebe1867f |
---|---|
8 urlpatterns = patterns('apps.bundle.views', | 8 urlpatterns = patterns('apps.bundle.views', |
9 url(BUNDLE_PATTERN + '/?$', 'detail', name='bundle_details'), | 9 url(BUNDLE_PATTERN + '/?$', 'detail', name='bundle_details'), |
10 url(BUNDLE_PATTERN + '/' + VERSION_PATTERN + '/?$', 'detail', | 10 url(BUNDLE_PATTERN + '/' + VERSION_PATTERN + '/?$', 'detail', |
11 name='bundle_version'), | 11 name='bundle_version'), |
12 url(BUNDLE_PATTERN + '/edit', 'edit', name='bundle_edit'), | 12 url(BUNDLE_PATTERN + '/edit', 'edit', name='bundle_edit'), |
13 url(BUNDLE_PATTERN + '/' + VERSION_PATTERN + '/download/?$', | |
14 'download', name='bundle_download'), | |
13 url(BUNDLE_PATTERN + '/' + VERSION_PATTERN + '/(?P<path>.+)/?$', | 15 url(BUNDLE_PATTERN + '/' + VERSION_PATTERN + '/(?P<path>.+)/?$', |
14 'file_detail', name='bundlefile_details'), | 16 'file_detail', name='bundlefile_details'), |
15 url(r'^$', 'index', name='bundle_new'), | 17 url(r'^$', 'index', name='bundle_new'), |
16 url(r'^explore$', 'explore', name='bundle_explore'), | 18 url(r'^explore$', 'explore', name='bundle_explore'), |
17 ) | 19 ) |