Files
edx-platform/lms/djangoapps/badges/backends/base.py
Stu Young 135f9ad998 incr-273 (#20566)
* run python modernize

* run isort
2019-05-16 09:51:45 -04:00

21 lines
424 B
Python

"""
Base class for badge backends.
"""
from __future__ import absolute_import
from abc import ABCMeta, abstractmethod
import six
class BadgeBackend(six.with_metaclass(ABCMeta, object)):
"""
Defines the interface for badging backends.
"""
@abstractmethod
def award(self, badge_class, user, evidence_url=None):
"""
Create a badge assertion for the user using this backend.
"""