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
16f51b10
Commit
16f51b10
authored
Dec 20, 2017
by
Jeremy Bowman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLAT-1861 Support pyfilesystem2
parent
0e744b39
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
4 deletions
+45
-4
.travis.yml
+18
-0
README.rst
+3
-2
recommender/recommender.py
+1
-1
setup.py
+23
-1
No files found.
.travis.yml
0 → 100644
View file @
16f51b10
language
:
python
sudo
:
false
install
:
-
echo "Nothing to install"
script
:
-
echo "TODO
:
add tests"
deploy
:
provider
:
pypi
user
:
edx
password
:
secure
:
"
"
distributions
:
sdist bdist_wheel
on
:
tags
:
true
README.
md
→
README.
rst
View file @
16f51b10
...
...
@@ -6,7 +6,8 @@ problem. The resources are recommended, edited, and voted by students.
For each resource, we show its title, link, short summary, preview
screenshot, and votes:

.. image:: recommender_xblock.png
:alt: Recommender screenshot
This is an module where students can share useful resources/hints and rate
them. This crowdsourcing mechanism allows a scalable solution to fulfill
...
...
@@ -16,7 +17,7 @@ students with varying learning needs.
de-endorse resource
* Discussion around each resource
* Better interface for adding varying types of resource (e.g., specific timestamps
in the video or specific elements in a learning sequence)
1
in the video or specific elements in a learning sequence)
* Better user help/documentation
* Tag/categorize resources around specific misconceptions
...
...
recommender/recommender.py
View file @
16f51b10
...
...
@@ -550,7 +550,7 @@ class RecommenderXBlock(HelperXBlock):
try
:
content
=
request
.
POST
[
'file'
]
.
file
.
read
()
file_id
=
hashlib
.
md5
(
content
)
.
hexdigest
()
file_name
=
(
file_id
+
'.'
+
result
)
file_name
=
u'{}.{}'
.
format
(
file_id
,
result
)
fhwrite
=
self
.
fs
.
open
(
file_name
,
"wb"
)
fhwrite
.
write
(
content
)
...
...
setup.py
View file @
16f51b10
...
...
@@ -5,6 +5,9 @@ import subprocess
from
setuptools.command.install
import
install
as
_install
from
setuptools
import
setup
base_path
=
os
.
path
.
dirname
(
__file__
)
README
=
open
(
os
.
path
.
join
(
base_path
,
"README.rst"
))
.
read
()
class
XBlockInstall
(
_install
):
"""Custom XBlock install command."""
...
...
@@ -43,11 +46,16 @@ def package_data(pkg, root_list):
setup
(
name
=
'recommender-xblock'
,
version
=
'1.
2
'
,
version
=
'1.
3
'
,
description
=
'recommender XBlock'
,
# TODO: write a better description.
long_description
=
README
,
author
=
'edX'
,
author_email
=
'oscm@edx.org'
,
url
=
'https://github.com/edx/RecommenderXBlock'
,
packages
=
[
'recommender'
,
],
license
=
'AGPL 3.0'
,
entry_points
=
{
'xblock.v1'
:
[
'recommender = recommender:RecommenderXBlock'
,
...
...
@@ -57,4 +65,18 @@ setup(
cmdclass
=
{
'install'
:
XBlockInstall
,
},
keywords
=
"Django edx"
,
classifiers
=
[
"Development Status :: 4 - Beta"
,
"Framework :: Django"
,
"Framework :: Django :: 1.8"
,
"Framework :: Django :: 1.9"
,
"Framework :: Django :: 1.10"
,
"Framework :: Django :: 1.11"
,
"Intended Audience :: Developers"
,
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)"
,
"Natural Language :: English"
,
"Programming Language :: Python :: 2"
,
"Programming Language :: Python :: 2.7"
,
],
)
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