Sequence is now namespaced

This commit is contained in:
Piotr Mitros
2011-12-12 08:58:25 -05:00
parent 459c1dab4e
commit c524e36606

View File

@@ -27,6 +27,8 @@ from django.conf import settings
import content_parser
import uuid
template_imports={'urllib':urllib}
def profile(request):
@@ -149,8 +151,12 @@ def seq_module(request, module):
js="".join([e[1]['js'] for e in contents if 'js' in e[1]])
return {'js':js+render_to_string('seq_module.js',{'items':contents}),
'content':render_to_string('seq_module.html',{'items':contents})}
iid=uuid.uuid1().hex
return {'js':js+render_to_string('seq_module.js',{'items':contents,
'id':"seq"}),
'content':render_to_string('seq_module.html',{'items':contents,
'id':"seq"})}
modx_modules={'problem':capa_module.LoncapaModule, 'video':video_module.VideoModule}