Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions done/done.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
""" Show a toggle which lets students mark things as done."""

import pkg_resources
from __future__ import absolute_import

import uuid

import six

import pkg_resources
from xblock.core import XBlock
from xblock.fields import Scope, String, Boolean, DateTime, Float
from xblock.fields import Boolean, DateTime, Float, Scope, String
from xblock.fragment import Fragment


def resource_string(path):
"""Handy helper for getting resources from our kit."""
data = pkg_resources.resource_string(__name__, path)
return data.decode("utf8")
return data.decode("utf8") if six.PY2 else data


class DoneXBlock(XBlock):
Expand Down
11 changes: 11 additions & 0 deletions openedx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file describes this Open edX repo, as described in OEP-2:
# https://open-edx-proposals.readthedocs.io/en/latest/oep-0002-bp-repo-metadata.html#specification

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add owner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about the owner of this? Is there any way of finding that out?
Thanks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noraiz-anwar I think pmitros but not sure otherwise you can just add unknown.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely not "pmitros".

owner: 'unknown'

oeps:
oep-2: True
oep-7: True

tags:
- xblock
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""Setup for done XBlock."""

from __future__ import absolute_import

import os

from setuptools import setup


Expand All @@ -16,8 +19,12 @@ def package_data(pkg, root):

setup(
name='done-xblock',
version='0.1',
version='2.0',
description='done XBlock', # TODO: write a better description.
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
]
packages=[
'done',
],
Expand All @@ -30,4 +37,4 @@ def package_data(pkg, root):
]
},
package_data=package_data("done", "static"),
)
)