abotsi / edx-p3e-repo

The source code of the P3E XBlock
0 stars 0 forks source link

Ajouter quelques propiétés standards de XBlock #21

Open abotsi opened 8 years ago

abotsi commented 8 years ago

http://edx.readthedocs.org/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#edx-learning-management-system-as-an-xblock-runtime https://github.com/edx/edx-ora2/blob/master/openassessment/xblock/lms_mixin.py

display_name = String(
    default="Cooperative Open Pair Assessment", scope=Scope.settings,
    help="Display name"
)

@property
def has_score(self):
    """Are we a scored type (read: a problem). Yes.
    For LMS Progress page/grades download purposes, we're always going to
    have a score, even if it's just 0 at the start.
    """
    return True

due = DateTime(
    default=None, scope=Scope.settings,
    help="ISO-8601 formatted string representing the due date of this assignment."
)

icon_class = "problem"
abotsi commented 8 years ago

weight - https://groups.google.com/forum/#!topic/edx-code/fKdWy4cPip8