lorien lorien web omd hg diff -r 212 224 task views py diff -r 4af682b

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
lorien@lorien:/web/omd$ hg diff -r 212:224 task/views.py
diff -r 4af682b6cfed -r a16e7e0cb72b task/views.py
--- a/task/views.py Thu Aug 21 09:07:32 2008 +0700
+++ b/task/views.py Tue Sep 02 04:18:48 2008 +0300
@@ -4,6 +4,7 @@
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db.models import Q
+from django.http import HttpResponseRedirect, HttpResponse
from common.views import *
from task.models import Task, TaskPlace
@@ -55,21 +56,18 @@
'verbose_name': Task._meta.verbose_name}
-@render_to('task/upload.html')
+
def upload_places(request, task_id):
task = get_object_or_404(Task, pk=task_id)
-
form = build_form(UploadTasksForm, request)
result_log = None
if request.method == 'POST':
result_log = process_places_file(
- request.FILES['file'].read(), task)
+ request.FILES['Filedata'].read(), task)
- return {'form': form,
- 'task': task,
- 'log': result_log}
+ return HttpResponse("hello world")
@managers_only