From 46e108e15b3f037bb2b0ac00042c09d79ad27ef8 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Thu, 17 May 2012 17:58:07 -0400 Subject: [PATCH] remove assumption that LoncapaProblem.fileobject is actually a file on the filesystem --- common/lib/capa/capa_problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa_problem.py b/common/lib/capa/capa_problem.py index db41ef5441..f051979be4 100644 --- a/common/lib/capa/capa_problem.py +++ b/common/lib/capa/capa_problem.py @@ -127,7 +127,7 @@ class LoncapaProblem(object): responder.preprocess_response() def __unicode__(self): - return u"LoncapaProblem ({0})".format(os.path.basename(self.fileobject.name)) + return u"LoncapaProblem ({0})".format(self.fileobject) def get_state(self): ''' Stored per-user session data neeeded to: