From e9e755b5175b47a4dbb69ac114428660bb2e12a8 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Thu, 14 May 2009 06:19:46 +0100 Subject: [svn] Fixed broken buttons on controlpanel, added CAVETAB2.CSV export and download buttons and made them work too. Changed ordering on PersonExpeditions so that it is based on their expedition. That way, even if we don't have date info on when a user was on expo exactly, pages like personindex work correctly. --- export/tocavetab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'export/tocavetab.py') diff --git a/export/tocavetab.py b/export/tocavetab.py index 121c36e..ab7a2ee 100644 --- a/export/tocavetab.py +++ b/export/tocavetab.py @@ -42,8 +42,7 @@ def cavetabRow(cave): caveRow[headers.index(column)]=modelField.replace(u'\xd7','x').replace(u'\u201c','').replace(u'\u2013','').replace(u'\xbd','') return caveRow -def writeCaveTab(path): - outfile=file(path,'w') +def writeCaveTab(outfile): cavewriter=csv.writer(outfile,lineterminator='\r') cavewriter.writerow(headers) for cave in models.Cave.objects.all(): -- cgit v1.2.3