[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.
This commit is contained in:
substantialnoninfringinguser
2009-05-14 06:19:46 +01:00
parent 191619e6d8
commit e9e755b517
7 changed files with 39 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.core import management
from django.db import connection
from django.contrib.auth.models import User
from django.http import HttpResponse
def reload_db():
cursor = connection.cursor()
@@ -55,4 +56,19 @@ def reset():
import_logbooks()
import_survex()
import_QMs()
import_surveys()
import_surveys()
def export_cavetab():
from export import tocavetab
outfile=file(os.path.join(settings.EXPOWEB, "noinfo", "CAVETAB2.CSV"),'w')
tocavetab.writeCaveTab(outfile)
outfile.close()
def export_qms(): #finish this. need cave chooser
from export import toqms
outfile=file(os.path.join(settings.EXPOWEB, "noinfo", "CAVETAB2.CSV"),'w')
outfile.close()