Commit 33ec4a0d by Xavier Antoviaque

Remove import of `workbench.scenarios`, removed from core XBlock repo

parent 7c218200
......@@ -31,7 +31,6 @@ import unicodecsv
from cStringIO import StringIO
from django.template import Context, Template
from xblock.fragment import Fragment
from workbench.scenarios import add_xml_scenario
# Globals ###########################################################
......@@ -73,7 +72,6 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
"""
base_fullpath = os.path.dirname(os.path.realpath(__file__))
scenarios_fullpath = os.path.join(base_fullpath, scenarios_path)
print scenarios_fullpath
scenarios = []
if os.path.isdir(scenarios_fullpath):
......@@ -94,10 +92,7 @@ def load_scenarios_from_path(scenarios_path):
"""
Load all xml files contained in a specified directory, as workbench scenarios
"""
scenarios = get_scenarios_from_path(scenarios_path, include_identifier=True)
for identifier, title, xml_template in scenarios:
add_xml_scenario(identifier, title, xml_template)
return scenarios
return get_scenarios_from_path(scenarios_path, include_identifier=True)
# Classes ###########################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment