Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
33ec4a0d
Commit
33ec4a0d
authored
Mar 18, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove import of `workbench.scenarios`, removed from core XBlock repo
parent
7c218200
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
+1
-6
mentoring/utils.py
+1
-6
No files found.
mentoring/utils.py
View file @
33ec4a0d
...
@@ -31,7 +31,6 @@ import unicodecsv
...
@@ -31,7 +31,6 @@ import unicodecsv
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
django.template
import
Context
,
Template
from
django.template
import
Context
,
Template
from
xblock.fragment
import
Fragment
from
xblock.fragment
import
Fragment
from
workbench.scenarios
import
add_xml_scenario
# Globals ###########################################################
# Globals ###########################################################
...
@@ -73,7 +72,6 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
...
@@ -73,7 +72,6 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
"""
"""
base_fullpath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
base_fullpath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
scenarios_fullpath
=
os
.
path
.
join
(
base_fullpath
,
scenarios_path
)
scenarios_fullpath
=
os
.
path
.
join
(
base_fullpath
,
scenarios_path
)
print
scenarios_fullpath
scenarios
=
[]
scenarios
=
[]
if
os
.
path
.
isdir
(
scenarios_fullpath
):
if
os
.
path
.
isdir
(
scenarios_fullpath
):
...
@@ -94,10 +92,7 @@ def load_scenarios_from_path(scenarios_path):
...
@@ -94,10 +92,7 @@ def load_scenarios_from_path(scenarios_path):
"""
"""
Load all xml files contained in a specified directory, as workbench scenarios
Load all xml files contained in a specified directory, as workbench scenarios
"""
"""
scenarios
=
get_scenarios_from_path
(
scenarios_path
,
include_identifier
=
True
)
return
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
# Classes ###########################################################
# Classes ###########################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment