summaryrefslogtreecommitdiffstats
path: root/expo/views_other.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-21 20:46:24 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-21 20:46:24 +0100
commite336e9c770f34c15b2f07264ca61b9f18bc9dc35 (patch)
tree794278cbf858c2f2edea703bee571fd8a7c03579 /expo/views_other.py
parent3ac1169aa79d0da5b95ac162e2df3d706cead8c4 (diff)
downloadtroggle-e336e9c770f34c15b2f07264ca61b9f18bc9dc35.tar.gz
troggle-e336e9c770f34c15b2f07264ca61b9f18bc9dc35.tar.bz2
troggle-e336e9c770f34c15b2f07264ca61b9f18bc9dc35.zip
[svn] allow the recreate tables thing on control panel to work
Diffstat (limited to 'expo/views_other.py')
-rw-r--r--expo/views_other.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/expo/views_other.py b/expo/views_other.py
index 4cbf786..504d1f6 100644
--- a/expo/views_other.py
+++ b/expo/views_other.py
@@ -63,7 +63,10 @@ def controlPanel(request):
jobs_completed=[]
if request.method=='POST':
if request.user.is_superuser:
- importlist=['import_people', 'import_cavetab', 'import_logbooks', 'import_surveys', 'import_QMs']
+
+ #importlist is mostly here so that things happen in the correct order.
+ #http post data seems to come in an unpredictable order, we do it this way.
+ importlist=['reload_db', 'import_people', 'import_cavetab', 'import_logbooks', 'import_surveys', 'import_QMs']
databaseReset.make_dirs()
for item in importlist:
if item in request.POST: