add service entry point to generate tar.gz file and return to caller. Use of the NamedTemporaryFile will auto cleanup.

This commit is contained in:
Chris Dodge
2012-12-27 15:31:12 -05:00
parent 8e5fc2917a
commit 239b118abe
3 changed files with 49 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ urlpatterns = ('',
url(r'^(?P<org>[^/]+)/(?P<course>[^/]+)/export/(?P<name>[^/]+)$',
'contentstore.views.export_course', name='export_course'),
url(r'^(?P<org>[^/]+)/(?P<course>[^/]+)/generate_export/(?P<name>[^/]+)$',
'contentstore.views.generate_export_course', name='generate_export_course'),
url(r'^preview/modx/(?P<preview_id>[^/]*)/(?P<location>.*?)/(?P<dispatch>[^/]*)$',
'contentstore.views.preview_dispatch', name='preview_dispatch'),