Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RecommenderXBlock
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
edx
RecommenderXBlock
Commits
bc236f3b
Commit
bc236f3b
authored
Dec 04, 2014
by
swdanielli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version string
parent
2b776c02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
recommender/recommender.py
+10
-11
No files found.
recommender/recommender.py
View file @
bc236f3b
...
...
@@ -27,7 +27,7 @@ except ImportError:
from
mako.lookup
import
TemplateLookup
from
xblock.core
import
XBlock
from
xblock.fields
import
Scope
,
List
,
Dict
,
Boolean
from
xblock.fields
import
Scope
,
List
,
Dict
,
Boolean
,
String
from
xblock.fragment
import
Fragment
from
xblock.reference.plugins
import
Filesystem
...
...
@@ -69,11 +69,11 @@ class RecommenderXBlock(XBlock):
scope
=
Scope
.
user_info
)
#
recommender_version = String(
#
help="The version of this RecommenderXBlock",
#
default="recommender.v1.0",
#
scope=Scope.content
#
)
recommender_version
=
String
(
help
=
"The version of this RecommenderXBlock"
,
default
=
"recommender.v1.0"
,
scope
=
Scope
.
content
)
intro_enabled
=
Boolean
(
help
=
"Take users on a little tour the first time they see the XBlock?"
,
default
=
True
,
scope
=
Scope
.
content
...
...
@@ -94,12 +94,11 @@ class RecommenderXBlock(XBlock):
# "description" : (String) the url of a resource's screenshot,
# "descriptionText" : (String) a paragraph of
# description/summary of a resource }
# we use url as key (index) of resources
# we use url as key (index) of resourcs
recommendations
=
Dict
(
help
=
"Dict of help resources"
,
default
=
{},
scope
=
Scope
.
user_state_summary
)
# A dict of recommenations provided by students, it is a JSON object
help
=
"Dict of help resources"
,
default
=
{},
scope
=
Scope
.
user_state_summary
)
# A dict of recommenations provided by students, it is a JSON object
# aggregated across many users of a single block.
# Usage: the same as default_recommendations
...
...
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