summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: babfb79)
raw | patch | inline | side by side (parent: babfb79)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 30 Mar 2004 06:43:08 +0000 (06:43 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 30 Mar 2004 06:43:08 +0000 (06:43 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2233 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/actions.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 2d5748caeed5a60e498832de4e0d617ae2684d3b..3dbe83b2bf22f1e00d585dba745efe606e9a0a1a 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
2004-??-?? 0.7.0
Fixed:
-- CSV export was busted
+- CSV export was busted (as was any action returning a result)
- MultiMapping deviated from the Zope C implementation in a number of
places (thanks Toby Sargeant)
diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py
index d5061105973687eed4d1a023326060ca37ad4be3..7bd678d4e89c6a2c52ab4c98f6fb977ac3643594 100755 (executable)
--- a/roundup/cgi/actions.py
+++ b/roundup/cgi/actions.py
-#$Id: actions.py,v 1.20 2004-03-29 21:56:56 richard Exp $
+#$Id: actions.py,v 1.21 2004-03-30 06:43:08 richard Exp $
import re, cgi, StringIO, urllib, Cookie, time, random
def execute(self):
"""Execute the action specified by this object."""
self.permission()
- self.handle()
+ return self.handle()
name = ''
permissionType = None
def handle(self):
''' Export the specified search query as CSV. '''
# figure the request
- request = templating.HTMLRequest(self)
+ request = templating.HTMLRequest(self.client)
filterspec = request.filterspec
sort = request.sort
group = request.group
else:
matches = None
- h = self.additional_headers
+ h = self.client.additional_headers
h['Content-Type'] = 'text/csv'
# some browsers will honor the filename here...
h['Content-Disposition'] = 'inline; filename=query.csv'
- self.header()
- writer = rcsv.writer(self.request.wfile)
+ self.client.header()
+ writer = rcsv.writer(self.client.request.wfile)
writer.writerow(columns)
# and search