Use correct User() for server

svn: r19574
This commit is contained in:
Doug Blank 2012-05-18 11:33:52 +00:00
parent f199b5782f
commit 2de079da06

View File

@ -351,7 +351,7 @@ def process_action(request, view, handle, action):
import threading
def background():
try:
import_file(db, filename, gui.user.User()) # callback
import_file(db, filename, cli.user.User()) # callback
except:
message = "import_file failed: " + traceback.format_exc()
request.user.message_set.create(message = message)
@ -360,7 +360,7 @@ def process_action(request, view, handle, action):
request.user.message_set.create(message = message)
return redirect("/report/")
else:
success = import_file(db, filename, gui.user.User()) # callback
success = import_file(db, filename, cli.user.User()) # callback
if not success:
message = "Failed to load imported."
request.user.message_set.create(message = message)