1 from django.shortcuts import render_to_response
\r
2 from django.template import RequestContext
\r
3 from forum.views.admin import super_user_required
\r
5 from zipfile import ZipFile
\r
8 def sximporter(request):
\r
10 if request.method == "POST" and "dump" in request.FILES:
\r
11 dump = ZipFile(request.FILES['dump'])
\r
12 importer.sximport(dump, request.POST)
\r
15 return render_to_response('modules/sximporter/page.html', {
\r
17 }, context_instance=RequestContext(request))