From 6cb55e1a36dd6896fe0e12d1cc3681d7eaef31b3 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 26 Jan 2015 14:05:32 -0500 Subject: [PATCH] Stringify ObjectIds before attempting to make a filename out of them --- .../modulestore/split_mongo/caching_descriptor_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py b/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py index 73a950b355..775f23d18a 100644 --- a/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py +++ b/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py @@ -53,7 +53,7 @@ class CachingDescriptorSystem(MakoDescriptorSystem, EditInfoRuntimeMixin): if course_entry.course_key.course: root = modulestore.fs_root / course_entry.course_key.org / course_entry.course_key.course / course_entry.course_key.run else: - root = modulestore.fs_root / course_entry.structure['_id'] + root = modulestore.fs_root / str(course_entry.structure['_id']) root.makedirs_p() # create directory if it doesn't exist id_manager = SplitMongoIdManager(self)