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
fea1d3e8
Commit
fea1d3e8
authored
Jan 10, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions to add custom scenarios & don't fail when none exist
parent
c6dca82b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
README.md
+11
-0
mentoring/utils.py
+1
-0
No files found.
README.md
View file @
fea1d3e8
...
@@ -128,6 +128,17 @@ INSTALLED_APPS += ('mentoring',)
...
@@ -128,6 +128,17 @@ INSTALLED_APPS += ('mentoring',)
DATABASES
[
'default'
][
'NAME'
]
=
'workbench.sqlite'
DATABASES
[
'default'
][
'NAME'
]
=
'workbench.sqlite'
```
```
Adding custom scenarios in the workbench
----------------------------------------
Create the
`templates/xml`
and add XML scenarios to it - all files with the
`*.xml`
extension will be
automatically loaded by the workbench:
```
bash
$
mkdir templates/xml
$
cat
>
templates/xml/my_mentoring_scenario.xml
```
Starting the workbench
Starting the workbench
----------------------
----------------------
...
...
mentoring/utils.py
View file @
fea1d3e8
...
@@ -76,6 +76,7 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
...
@@ -76,6 +76,7 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
scenarios_fullpath
=
os
.
path
.
join
(
base_fullpath
,
scenarios_path
)
scenarios_fullpath
=
os
.
path
.
join
(
base_fullpath
,
scenarios_path
)
scenarios
=
[]
scenarios
=
[]
if
os
.
path
.
isdir
(
scenarios_fullpath
):
for
template
in
os
.
listdir
(
scenarios_fullpath
):
for
template
in
os
.
listdir
(
scenarios_fullpath
):
if
not
template
.
endswith
(
'.xml'
):
if
not
template
.
endswith
(
'.xml'
):
continue
continue
...
...
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