Skip to content

Instantly share code, notes, and snippets.

diff --git a/cms/envs/common.py b/cms/envs/common.py
index 9bba1f9..b914239 100644
--- a/cms/envs/common.py
+++ b/cms/envs/common.py
@@ -34,8 +34,7 @@ from path import path
from lms.lib.xblock.mixin import LmsBlockMixin
from cms.lib.xblock.mixin import CmsBlockMixin
from xmodule.modulestore.inheritance import InheritanceMixin
-from xmodule.modulestore import only_xmodules
-from xmodule.x_module import XModuleMixin
<mrq name="mrq_1_1" type="choices">
<question>Select the companies in the list which will be market leaders in 20 years:</question>
<choice value="mckinsey">McKinsey</choice>
<choice value="edx">edX</choice>
<choice value="coursera">Coursera</choice>
<choice value="boston">Boston Consulting Group</choice>
<tip reject="coursera">edX will have taken most of the market share with its open source approach</tip>
<tip reject="boston">Most of its clients will have fled to McKinsey</tip>
edxapp@edx:~/edx-platform$ rake assets[lms,devstack]
./manage.py lms --settings devstack preprocess_assets --traceback
xmodule_assets common/static/xmodule
node_modules/.bin/coffee --compile `find lms/ cms/ common/ -type f -name *.coffee`
sass --style compressed --cache-location /tmp/sass-cache --load-path ./common/static/sass --update -E utf-8 */static
overwrite cms/static/sass/style-app-extend1.css
overwrite cms/static/sass/style-app.css
overwrite cms/static/sass/style-xmodule.css
error lms/static/sass/application-extend1.scss (Line 23: File to import not found or unreadable: mckinseyacademy.
Load paths:
edxapp@edx:~/edx-platform$ cat ../lms.env.json
{
"ANALYTICS_SERVER_URL": "",
"BOOK_URL": "",
"BUGS_EMAIL": "",
"BULK_EMAIL_DEFAULT_FROM_EMAIL": "",
"CACHES": {
"celery": {
"BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
"KEY_FUNCTION": "util.memcache.safe_key",
Apr 25 12:18:59 ip-10-0-11-19 [service_variant=lms][django.request][env:sandbox] ERROR [ip-10-0-11-19 1121] [base.py:215] - Internal Server Error: /courses/Demo/DM01/2014/progress
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 75, in _cache_controlled
response = viewfunc(request, *args, **kw)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/transaction.py", line 224, in inner
return func(*args, **kwargs)
edxapp@edx:~/edx-platform$ ./manage.py cms runserver --settings=devstack 0.0.0.0:8001
Validating models...
0 errors found
Django version 1.4.8, using settings 'cms.envs.devstack'
Development server is running at http://0.0.0.0:8001/
Quit the server with CONTROL-C.
[29/Apr/2014 14:30:43] "GET / HTTP/1.1" 200 21534
[29/Apr/2014 14:30:43] "GET /i18n.js HTTP/1.1" 200 2158
[29/Apr/2014 14:30:45] "GET /signup HTTP/1.1" 200 19353
2014-05-12 12:17:47,851 ERROR 3882 [xmodule.seq_module] seq_module.py:142 - Unable to load child when parsing Sequence. Continuing...
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py", line 139, in definition_from_xml
child_block = system.process_xml(etree.tostring(child, encoding='unicode'))
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml.py", line 179, in process_xml
id_generator,
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml.py", line 311, in create_block_from_xml
xblock = xblock_class.parse_xml(node, system, scope_ids, id_generator)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 352, in parse_xml
setattr(block, name, value)
diff --cc api/search.rb
index a49c2f4,a6815f3..0000000
--- a/api/search.rb
+++ b/api/search.rb
@@@ -1,88 -1,45 +1,103 @@@
require 'new_relic/agent/method_tracer'
get "#{APIPREFIX}/search/threads" do
+ local_params = params # Necessary for params to be available inside blocks
+ sort_criteria = get_sort_criteria(local_params)
2014-07-17 12:07:28,792 ERROR 2794 [django.request] base.py:215 - Internal Server Error: /courses/TSTX/GRP1/now/xblock/i4x:;_;_TSTX;_GRP1;_vertical;_885b46f041ec4207b5fd9ba9d7de6460/view/student_view
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 688, in xblock_view
fragment = instance.render(view_name)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 283, in render
return self.runtime.render(self, view, context)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1078, in render
return block.xmodule_runtime.render(to_render, view_name, context)
2014-07-17 12:57:42,860 ERROR 5871 [django.request] base.py:215 - Internal Server Error: /courses/TSTX/GRP1/now/xblock/i4x:;_;_TSTX;_GRP1;_vertical;_885b46f041ec4207b5fd9ba9d7de6460/view/student_view
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 688, in xblock_view
fragment = instance.render(view_name)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 283, in render
return self.runtime.render(self, view, context)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1078, in render
return block.xmodule_runtime.render(to_render, view_name, context)