diff --git a/schoolyourself/schoolyourself_lesson.py b/schoolyourself/schoolyourself_lesson.py index 284033a..68a60d0 100644 --- a/schoolyourself/schoolyourself_lesson.py +++ b/schoolyourself/schoolyourself_lesson.py @@ -3,7 +3,11 @@ import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error from xblock.core import XBlock -from xblock.fragment import Fragment +try: + from web_fragments.fragment import Fragment +except: + # for backwards compatibility with quince and prior releases + from xblock.fragment import Fragment from .schoolyourself import SchoolYourselfXBlock diff --git a/schoolyourself/schoolyourself_review.py b/schoolyourself/schoolyourself_review.py index 06cdb22..35665f3 100644 --- a/schoolyourself/schoolyourself_review.py +++ b/schoolyourself/schoolyourself_review.py @@ -7,7 +7,11 @@ from xblock.core import XBlock from xblock.fields import Scope, String -from xblock.fragment import Fragment +try: + from web_fragments.fragment import Fragment +except: + # for backwards compatibility with quince and prior releases + from xblock.fragment import Fragment from .schoolyourself import SchoolYourselfXBlock diff --git a/setup.py b/setup.py index 94ee807..1d6d77b 100644 --- a/setup.py +++ b/setup.py @@ -90,7 +90,7 @@ def package_data(pkg, roots): setup( name="schoolyourself-xblock", - version="0.2", + version="0.2.1", description="School Yourself lesson player", packages=[ "schoolyourself",