_id stringlengths 2 7 | title stringlengths 1 88 | partition stringclasses 3
values | text stringlengths 75 19.8k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q47600 | GradeSystemGradebookSession.get_grade_system_ids_by_gradebooks | train | def get_grade_system_ids_by_gradebooks(self, gradebook_ids):
"""Gets the list of ``GradeSystem Ids`` corresponding to a list of ``Gradebooks``.
arg: gradebook_ids (osid.id.IdList): list of gradebook
``Ids``
return: (osid.id.IdList) - list of grade systems ``Ids``
rais... | python | {
"resource": ""
} |
q47601 | GradeSystemGradebookSession.get_grade_systems_by_gradebooks | train | def get_grade_systems_by_gradebooks(self, gradebook_ids):
"""Gets the list of grade systems corresponding to a list of ``Gradebooks``.
arg: gradebook_ids (osid.id.IdList): list of gradebook
``Ids``
return: (osid.grading.GradeSystemList) - list of grade systems
raise: ... | python | {
"resource": ""
} |
q47602 | GradeSystemGradebookSession.get_gradebook_ids_by_grade_system | train | def get_gradebook_ids_by_grade_system(self, grade_system_id):
"""Gets the list of ``Gradebook`` ``Ids`` mapped to a ``GradeSystem``.
arg: grade_system_id (osid.id.Id): ``Id`` of a
``GradeSystem``
return: (osid.id.IdList) - list of gradebook ``Ids``
raise: NotFound -... | python | {
"resource": ""
} |
q47603 | GradeSystemGradebookSession.get_gradebooks_by_grade_system | train | def get_gradebooks_by_grade_system(self, grade_system_id):
"""Gets the list of ``Gradebooks`` mapped to a ``GradeSystem``.
arg: grade_system_id (osid.id.Id): ``Id`` of a
``GradeSystem``
return: (osid.grading.GradebookList) - list of gradebooks
raise: NotFound - ``gra... | python | {
"resource": ""
} |
q47604 | GradeSystemGradebookAssignmentSession.get_assignable_gradebook_ids | train | def get_assignable_gradebook_ids(self, gradebook_id):
"""Gets a list of gradebooks including and under the given gradebook node in which any grade system can be assigned.
arg: gradebook_id (osid.id.Id): the ``Id`` of the
``Gradebook``
return: (osid.id.IdList) - list of assign... | python | {
"resource": ""
} |
q47605 | GradeSystemGradebookAssignmentSession.assign_grade_system_to_gradebook | train | def assign_grade_system_to_gradebook(self, grade_system_id, gradebook_id):
"""Adds an existing ``GradeSystem`` to a ``Gradebook``.
arg: grade_system_id (osid.id.Id): the ``Id`` of the
``GradeSystem``
arg: gradebook_id (osid.id.Id): the ``Id`` of the
``Grade... | python | {
"resource": ""
} |
q47606 | GradeSystemGradebookAssignmentSession.unassign_grade_system_from_gradebook | train | def unassign_grade_system_from_gradebook(self, grade_system_id, gradebook_id):
"""Removes a ``GradeSystem`` from a ``Gradebook``.
arg: grade_system_id (osid.id.Id): the ``Id`` of the
``GradeSystem``
arg: gradebook_id (osid.id.Id): the ``Id`` of the
``Gradeb... | python | {
"resource": ""
} |
q47607 | GradeEntryLookupSession.get_grade_entry | train | def get_grade_entry(self, grade_entry_id):
"""Gets the ``GradeEntry`` specified by its ``Id``.
arg: grade_entry_id (osid.id.Id): ``Id`` of the
``GradeEntry``
return: (osid.grading.GradeEntry) - the grade entry
raise: NotFound - ``grade_entry_id`` not found
ra... | python | {
"resource": ""
} |
q47608 | GradeEntryLookupSession.get_grade_entries_by_ids | train | def get_grade_entries_by_ids(self, grade_entry_ids):
"""Gets a ``GradeEntryList`` corresponding to the given ``IdList``.
arg: grade_entry_ids (osid.id.IdList): the list of ``Ids`` to
retrieve
return: (osid.grading.GradeEntryList) - the returned
``GradeEntry`` ... | python | {
"resource": ""
} |
q47609 | GradeEntryLookupSession.get_grade_entries_by_genus_type | train | def get_grade_entries_by_genus_type(self, grade_entry_genus_type):
"""Gets a ``GradeEntryList`` corresponding to the given grade entry genus ``Type`` which does not include grade entries of genus types derived from the specified ``Type``.
arg: grade_entry_genus_type (osid.type.Type): a grade entry
... | python | {
"resource": ""
} |
q47610 | GradeEntryLookupSession.get_grade_entries_on_date | train | def get_grade_entries_on_date(self, from_, to):
"""Gets a ``GradeEntryList`` effective during the entire given date range inclusive but not confined to the date range.
arg: from (osid.calendaring.DateTime): start of date range
arg: to (osid.calendaring.DateTime): end of date range
... | python | {
"resource": ""
} |
q47611 | GradeEntryLookupSession.get_grade_entries_for_gradebook_column_on_date | train | def get_grade_entries_for_gradebook_column_on_date(self, gradebook_column_id, from_, to):
"""Gets a ``GradeEntryList`` for the given gradebook column and effective during the entire given date range inclusive but not confined to the date range.
arg: gradebook_column_id (osid.id.Id): a gradebook colu... | python | {
"resource": ""
} |
q47612 | GradeEntryLookupSession.get_grade_entries_for_gradebook_column_and_resource | train | def get_grade_entries_for_gradebook_column_and_resource(self, gradebook_column_id, resource_id):
"""Gets a ``GradeEntryList`` for the gradebook column and key resource.
arg: gradebook_column_id (osid.id.Id): a gradebook column
``Id``
arg: resource_id (osid.id.Id): a key re... | python | {
"resource": ""
} |
q47613 | GradeEntryLookupSession.get_grade_entries | train | def get_grade_entries(self):
"""Gets all grade entries.
return: (osid.grading.GradeEntryList) - a ``GradeEntryList``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.*
... | python | {
"resource": ""
} |
q47614 | GradeEntryQuerySession.get_grade_entries_by_query | train | def get_grade_entries_by_query(self, grade_entry_query):
"""Gets a list of entries matching the given grade entry query.
arg: grade_entry_query (osid.grading.GradeEntryQuery): the
grade entry query
return: (osid.grading.GradeEntryList) - the returned
``GradeEn... | python | {
"resource": ""
} |
q47615 | GradeEntryAdminSession.get_grade_entry_form_for_create | train | def get_grade_entry_form_for_create(self, gradebook_column_id, resource_id, grade_entry_record_types):
"""Gets the grade entry form for creating new grade entries.
A new form should be requested for each create transaction.
arg: gradebook_column_id (osid.id.Id): the gradebook column
... | python | {
"resource": ""
} |
q47616 | GradeEntryAdminSession.create_grade_entry | train | def create_grade_entry(self, grade_entry_form):
"""Creates a new ``GradeEntry``.
arg: grade_entry_form (osid.grading.GradeEntryForm): the form
for this ``GradeEntry``
return: (osid.grading.GradeEntry) - the new ``GradeEntry``
raise: IllegalState - ``grade_entry_form`... | python | {
"resource": ""
} |
q47617 | GradeEntryAdminSession.get_grade_entry_form_for_update | train | def get_grade_entry_form_for_update(self, grade_entry_id):
"""Gets the grade entry form for updating an existing entry.
A new grade entry form should be requested for each update
transaction.
arg: grade_entry_id (osid.id.Id): the ``Id`` of the
``GradeEntry``
... | python | {
"resource": ""
} |
q47618 | GradeEntryAdminSession.update_grade_entry | train | def update_grade_entry(self, grade_entry_form):
"""Updates an existing grade entry.
arg: grade_entry_form (osid.grading.GradeEntryForm): the form
containing the elements to be updated
raise: IllegalState - ``grade_entry_form`` already used in an
update transa... | python | {
"resource": ""
} |
q47619 | GradeEntryAdminSession.delete_grade_entry | train | def delete_grade_entry(self, grade_entry_id):
"""Deletes the ``GradeEntry`` identified by the given ``Id``.
arg: grade_entry_id (osid.id.Id): the ``Id`` of the
``GradeEntry`` to delete
raise: NotFound - a ``GradeEntry`` was not found identified by
the given `... | python | {
"resource": ""
} |
q47620 | GradeEntryAdminSession.alias_grade_entry | train | def alias_grade_entry(self, grade_entry_id, alias_id):
"""Adds an ``Id`` to a ``GradeEntry`` for the purpose of creating compatibility.
The primary ``Id`` of the ``GradeEntry`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id``. If the alias is a po... | python | {
"resource": ""
} |
q47621 | GradebookColumnLookupSession.get_gradebook_column | train | def get_gradebook_column(self, gradebook_column_id):
"""Gets the ``GradebookColumn`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``GradebookColumn`` may have a
different ``Id`` than requested, such as the case wh... | python | {
"resource": ""
} |
q47622 | GradebookColumnLookupSession.get_gradebook_columns_by_ids | train | def get_gradebook_columns_by_ids(self, gradebook_column_ids):
"""Gets a ``GradebookColumnList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the gradebook
columns specified in the ``Id`` list, in the order of the list,
including duplicates, o... | python | {
"resource": ""
} |
q47623 | GradebookColumnLookupSession.get_gradebook_columns_by_genus_type | train | def get_gradebook_columns_by_genus_type(self, gradebook_column_genus_type):
"""Gets a ``GradebookColumnList`` corresponding to the given gradebook column genus ``Type`` which does not include gradebook columns of genus types derived from the specified ``Type``.
In plenary mode, the returned list contai... | python | {
"resource": ""
} |
q47624 | GradebookColumnLookupSession.get_gradebook_columns | train | def get_gradebook_columns(self):
"""Gets all gradebook columns.
In plenary mode, the returned list contains all known gradebook
columns or an error results. Otherwise, the returned list may
contain only those gradebook columns that are accessible through
this session.
r... | python | {
"resource": ""
} |
q47625 | GradebookColumnLookupSession.get_gradebook_column_summary | train | def get_gradebook_column_summary(self, gradebook_column_id):
"""Gets the ``GradebookColumnSummary`` for summary results.
arg: gradebook_column_id (osid.id.Id): ``Id`` of the
``GradebookColumn``
return: (osid.grading.GradebookColumnSummary) - the gradebook
colu... | python | {
"resource": ""
} |
q47626 | GradebookColumnQuerySession.get_gradebook_columns_by_query | train | def get_gradebook_columns_by_query(self, gradebook_column_query):
"""Gets a list of gradebook columns matching the given query.
arg: gradebook_column_query
(osid.grading.GradebookColumnQuery): the gradebook
column query
return: (osid.grading.GradebookColumnLis... | python | {
"resource": ""
} |
q47627 | GradebookColumnAdminSession.can_create_gradebook_column_with_record_types | train | def can_create_gradebook_column_with_record_types(self, gradebook_column_record_types):
"""Tests if this user can create a single ``GradebookColumn`` using the desired record types.
While ``GradingManager.getGradebookColumnRecordTypes()`` can be
used to examine which records are supported, this... | python | {
"resource": ""
} |
q47628 | GradebookColumnAdminSession.get_gradebook_column_form_for_create | train | def get_gradebook_column_form_for_create(self, gradebook_column_record_types):
"""Gets the gradebook column form for creating new gradebook columns.
A new form should be requested for each create transaction.
arg: gradebook_column_record_types (osid.type.Type[]): array
of gr... | python | {
"resource": ""
} |
q47629 | GradebookColumnAdminSession.create_gradebook_column | train | def create_gradebook_column(self, gradebook_column_form):
"""Creates a new ``GradebookColumn``.
arg: gradebook_column_form
(osid.grading.GradebookColumnForm): the form for this
``GradebookColumn``
return: (osid.grading.GradebookColumn) - the new
... | python | {
"resource": ""
} |
q47630 | GradebookColumnAdminSession.update_gradebook_column | train | def update_gradebook_column(self, gradebook_column_form):
"""Updates an existing gradebook column.
arg: gradebook_column_form
(osid.grading.GradebookColumnForm): the form containing
the elements to be updated
raise: IllegalState - ``gradebook_column_form`` al... | python | {
"resource": ""
} |
q47631 | GradebookColumnAdminSession.delete_gradebook_column | train | def delete_gradebook_column(self, gradebook_column_id):
"""Deletes the ``GradebookColumn`` identified by the given ``Id``.
arg: gradebook_column_id (osid.id.Id): the ``Id`` of the
``GradebookColumn`` to delete
raise: NotFound - a ``GradebookColumn`` was not found
... | python | {
"resource": ""
} |
q47632 | GradebookColumnAdminSession.alias_gradebook_column | train | def alias_gradebook_column(self, gradebook_column_id, alias_id):
"""Adds an ``Id`` to a ``GradebookColumn`` for the purpose of creating compatibility.
The primary ``Id`` of the ``GradebookColumn`` is determined by
the provider. The new ``Id`` performs as an alias to the primary
``Id``. ... | python | {
"resource": ""
} |
q47633 | GradebookColumnGradebookSession.get_gradebook_column_ids_by_gradebook | train | def get_gradebook_column_ids_by_gradebook(self, gradebook_id):
"""Gets the list of ``GradebookColumn`` ``Ids`` associated with a ``Gradebook``.
arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook``
return: (osid.id.IdList) - list of related gradebook column
``Ids``
... | python | {
"resource": ""
} |
q47634 | GradebookColumnGradebookSession.get_gradebook_columns_by_gradebook | train | def get_gradebook_columns_by_gradebook(self, gradebook_id):
"""Gets the list of gradebook columns associated with a ``Gradebook``.
arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook``
return: (osid.grading.GradebookColumnList) - list of related
gradebook columns
... | python | {
"resource": ""
} |
q47635 | GradebookColumnGradebookSession.get_gradebook_column_ids_by_gradebooks | train | def get_gradebook_column_ids_by_gradebooks(self, gradebook_ids):
"""Gets the list of ``GradebookColumn Ids`` corresponding to a list of ``Gradebooks``.
arg: gradebook_ids (osid.id.IdList): list of gradebook
``Ids``
return: (osid.id.IdList) - list of gradebook column ``Ids``
... | python | {
"resource": ""
} |
q47636 | GradebookColumnGradebookSession.get_gradebook_columns_by_gradebooks | train | def get_gradebook_columns_by_gradebooks(self, gradebook_ids):
"""Gets the list of gradebook columns corresponding to a list of ``Gradebooks``.
arg: gradebook_ids (osid.id.IdList): list of gradebook
``Ids``
return: (osid.grading.GradebookColumnList) - list of gradebook
... | python | {
"resource": ""
} |
q47637 | GradebookColumnGradebookSession.get_gradebook_ids_by_gradebook_column | train | def get_gradebook_ids_by_gradebook_column(self, gradebook_column_id):
"""Gets the list of ``Gradebook`` ``Ids`` mapped to a ``GradebookColumn``.
arg: gradebook_column_id (osid.id.Id): ``Id`` of a
``GradebookColumn``
return: (osid.id.IdList) - list of gradebook ``Ids``
... | python | {
"resource": ""
} |
q47638 | GradebookColumnGradebookSession.get_gradebooks_by_gradebook_column | train | def get_gradebooks_by_gradebook_column(self, gradebook_column_id):
"""Gets the list of ``Gradebooks`` mapped to a ``GradebookColumn``.
arg: gradebook_column_id (osid.id.Id): ``Id`` of a
``GradebookColumn``
return: (osid.grading.GradebookList) - list of gradebooks
rais... | python | {
"resource": ""
} |
q47639 | GradebookColumnGradebookAssignmentSession.assign_gradebook_column_to_gradebook | train | def assign_gradebook_column_to_gradebook(self, gradebook_column_id, gradebook_id):
"""Adds an existing ``GradebookColumn`` to a ``Gradebook``.
arg: gradebook_column_id (osid.id.Id): the ``Id`` of the
``GradebookColumn``
arg: gradebook_id (osid.id.Id): the ``Id`` of the
... | python | {
"resource": ""
} |
q47640 | GradebookColumnGradebookAssignmentSession.unassign_gradebook_column_from_gradebook | train | def unassign_gradebook_column_from_gradebook(self, gradebook_column_id, gradebook_id):
"""Removes a ``GradebookColumn`` from a ``Gradebook``.
arg: gradebook_column_id (osid.id.Id): the ``Id`` of the
``GradebookColumn``
arg: gradebook_id (osid.id.Id): the ``Id`` of the
... | python | {
"resource": ""
} |
q47641 | GradebookAdminSession.can_create_gradebook_with_record_types | train | def can_create_gradebook_with_record_types(self, gradebook_record_types):
"""Tests if this user can create a single ``Gradebook`` using the desired record types.
While ``GradingManager.getGradebookRecordTypes()`` can be used
to examine which records are supported, this method tests which
... | python | {
"resource": ""
} |
q47642 | GradebookAdminSession.update_gradebook | train | def update_gradebook(self, gradebook_form):
"""Updates an existing gradebook.
arg: gradebook_form (osid.grading.GradebookForm): the form
containing the elements to be updated
raise: IllegalState - ``gradebook_form`` already used in an
update transaction
... | python | {
"resource": ""
} |
q47643 | GradebookAdminSession.alias_gradebook | train | def alias_gradebook(self, gradebook_id, alias_id):
"""Adds an ``Id`` to a ``Gradebook`` for the purpose of creating compatibility.
The primary ``Id`` of the ``Gradebook`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id`` . If the alias is a pointer... | python | {
"resource": ""
} |
q47644 | GradebookHierarchySession.get_root_gradebook_ids | train | def get_root_gradebook_ids(self):
"""Gets the root gradebook ``Ids`` in this hierarchy.
return: (osid.id.IdList) - the root gradebook ``Ids``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This meth... | python | {
"resource": ""
} |
q47645 | GradebookHierarchySession.get_root_gradebooks | train | def get_root_gradebooks(self):
"""Gets the root gradebooks in this gradebook hierarchy.
return: (osid.grading.GradebookList) - the root gradebooks
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This... | python | {
"resource": ""
} |
q47646 | GradebookHierarchySession.has_parent_gradebooks | train | def has_parent_gradebooks(self, gradebook_id):
"""Tests if the ``Gradebook`` has any parents.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if the gradebook has parents,
``false`` otherwise
raise: NotFound - ``gradebook_id`` i... | python | {
"resource": ""
} |
q47647 | GradebookHierarchySession.is_parent_of_gradebook | train | def is_parent_of_gradebook(self, id_, gradebook_id):
"""Tests if an ``Id`` is a direct parent of a gradebook.
arg: id (osid.id.Id): an ``Id``
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if this ``id`` is a parent of
``grad... | python | {
"resource": ""
} |
q47648 | GradebookHierarchySession.get_parent_gradebook_ids | train | def get_parent_gradebook_ids(self, gradebook_id):
"""Gets the parent ``Ids`` of the given gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (osid.id.IdList) - the parent ``Ids`` of the gradebook
raise: NotFound - ``gradebook_id`` is not found
raise... | python | {
"resource": ""
} |
q47649 | GradebookHierarchySession.get_parent_gradebooks | train | def get_parent_gradebooks(self, gradebook_id):
"""Gets the parents of the given gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (osid.grading.GradebookList) - the parents of the
gradebook
raise: NotFound - ``gradebook_id`` is not found
... | python | {
"resource": ""
} |
q47650 | GradebookHierarchySession.is_ancestor_of_gradebook | train | def is_ancestor_of_gradebook(self, id_, gradebook_id):
"""Tests if an ``Id`` is an ancestor of a gradebook.
arg: id (osid.id.Id): an ``Id``
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if this ``id`` is an ancestor of
``gra... | python | {
"resource": ""
} |
q47651 | GradebookHierarchySession.has_child_gradebooks | train | def has_child_gradebooks(self, gradebook_id):
"""Tests if a gradebook has any children.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if the ``gradebook_id`` has
children, ``false`` otherwise
raise: NotFound - ``gradebook_id``... | python | {
"resource": ""
} |
q47652 | GradebookHierarchySession.is_child_of_gradebook | train | def is_child_of_gradebook(self, id_, gradebook_id):
"""Tests if a gradebook is a direct child of another.
arg: id (osid.id.Id): an ``Id``
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if the ``id`` is a child of
``gradebook_... | python | {
"resource": ""
} |
q47653 | GradebookHierarchySession.get_child_gradebook_ids | train | def get_child_gradebook_ids(self, gradebook_id):
"""Gets the child ``Ids`` of the given gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` to query
return: (osid.id.IdList) - the children of the gradebook
raise: NotFound - ``gradebook_id`` is not found
raise: NullArgumen... | python | {
"resource": ""
} |
q47654 | GradebookHierarchySession.get_child_gradebooks | train | def get_child_gradebooks(self, gradebook_id):
"""Gets the children of the given gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` to query
return: (osid.grading.GradebookList) - the children of the
gradebook
raise: NotFound - ``gradebook_id`` is not found
... | python | {
"resource": ""
} |
q47655 | GradebookHierarchySession.is_descendant_of_gradebook | train | def is_descendant_of_gradebook(self, id_, gradebook_id):
"""Tests if an ``Id`` is a descendant of a gradebook.
arg: id (osid.id.Id): an ``Id``
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
return: (boolean) - ``true`` if the ``id`` is a descendant of
th... | python | {
"resource": ""
} |
q47656 | GradebookHierarchySession.get_gradebook_nodes | train | def get_gradebook_nodes(self, gradebook_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` to query
arg: ancestor_levels (cardinal): the maximum number of
ancesto... | python | {
"resource": ""
} |
q47657 | GradebookHierarchyDesignSession.add_root_gradebook | train | def add_root_gradebook(self, gradebook_id):
"""Adds a root gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
raise: AlreadyExists - ``gradebook_id`` is already in hierarchy
raise: NotFound - ``gradebook_id`` not found
raise: NullArgument - ``gradebook_id... | python | {
"resource": ""
} |
q47658 | GradebookHierarchyDesignSession.remove_root_gradebook | train | def remove_root_gradebook(self, gradebook_id):
"""Removes a root gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
raise: NotFound - ``gradebook_id`` is not a root
raise: NullArgument - ``gradebook_id`` is ``null``
raise: OperationFailed - unable to comp... | python | {
"resource": ""
} |
q47659 | GradebookHierarchyDesignSession.add_child_gradebook | train | def add_child_gradebook(self, gradebook_id, child_id):
"""Adds a child to a gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
arg: child_id (osid.id.Id): the ``Id`` of the new child
raise: AlreadyExists - ``gradebook_id`` is already a parent of
... | python | {
"resource": ""
} |
q47660 | GradebookHierarchyDesignSession.remove_child_gradebook | train | def remove_child_gradebook(self, gradebook_id, child_id):
"""Removes a child from a gradebook.
arg: gradebook_id (osid.id.Id): the ``Id`` of a gradebook
arg: child_id (osid.id.Id): the ``Id`` of the new child
raise: NotFound - ``gradebook_id`` not a parent of ``child_id``
... | python | {
"resource": ""
} |
q47661 | ScaffoldDownAssessmentPartRecord.get_id | train | def get_id(self):
"""override get_id to generate our "magic" id that encodes scaffolding information"""
waypoint_index = 0
if 'waypointIndex' in self.my_osid_object._my_map:
waypoint_index = self.my_osid_object._my_map['waypointIndex']
# NOTE that the order of the dict **must... | python | {
"resource": ""
} |
q47662 | ScaffoldDownAssessmentPartRecord.initialize | train | def initialize(self, magic_identifier, assessment_section):
"""This method is to be called by a magic AssessmentPart lookup session.
magic_identifier_part includes:
parent_id = id string of the parent part that created this part
level = how many levels deep
objective... | python | {
"resource": ""
} |
q47663 | ScaffoldDownAssessmentPartRecord.get_parts | train | def get_parts(self, parts=None, reference_level=0):
"""Recursively returns a depth-first list of all known magic parts"""
if parts is None:
parts = list()
new_reference_level = reference_level
else:
self._level_in_section = self._level + reference_level
... | python | {
"resource": ""
} |
q47664 | ScaffoldDownAssessmentPartRecord.load_item_for_objective | train | def load_item_for_objective(self):
"""if this is the first time for this magic part, find an LO linked item"""
mgr = self.my_osid_object._get_provider_manager('ASSESSMENT', local=True)
if self.my_osid_object._my_map['itemBankId']:
item_query_session = mgr.get_item_query_session_for_b... | python | {
"resource": ""
} |
q47665 | ScaffoldDownAssessmentPartRecord.has_magic_children | train | def has_magic_children(self):
"""checks if child parts are currently available for this part"""
if self._child_parts is not None: # generate_children has already been called
return bool(self._child_parts)
if self._assessment_section is not None:
if (self.my_osid_object._... | python | {
"resource": ""
} |
q47666 | ScaffoldDownAssessmentPartRecord.get_child_ids | train | def get_child_ids(self):
"""gets the ids for the child parts"""
if self.has_magic_children():
if self._child_parts is None:
self.generate_children()
child_ids = list()
for part in self._child_parts:
child_ids.append(part.get_id())
... | python | {
"resource": ""
} |
q47667 | ScaffoldDownAssessmentPartRecord.get_children | train | def get_children(self):
"""return the current child parts of this assessment part"""
if self.has_magic_children():
if self._child_parts is None:
self.generate_children()
return self._child_parts
raise IllegalState() | python | {
"resource": ""
} |
q47668 | ScaffoldDownAssessmentPartRecord.get_item_ids | train | def get_item_ids(self):
"""get item ids associated with this assessment part"""
if self.has_item_ids():
return IdList(self.my_osid_object._my_map['itemIds'],
runtime=self.my_osid_object._runtime,
proxy=self.my_osid_object._proxy)
ra... | python | {
"resource": ""
} |
q47669 | ScaffoldDownAssessmentPartRecord.get_scaffold_objective_ids | train | def get_scaffold_objective_ids(self):
"""Assumes that a scaffold objective id is available"""
section = self._assessment_section
item_id = self.get_my_item_id_from_section(section)
return section.get_confused_learning_objective_ids(item_id) | python | {
"resource": ""
} |
q47670 | ScaffoldDownAssessmentPartRecord.get_my_item_id_from_section | train | def get_my_item_id_from_section(self, section):
"""returns the first item associated with this magic Part Id in the Section"""
for question_map in section._my_map['questions']:
if question_map['assessmentPartId'] == str(self.get_id()):
return section.get_question(question_map... | python | {
"resource": ""
} |
q47671 | ScaffoldDownAssessmentPartRecord.delete | train | def delete(self):
"""need this because the JSONClientValidated cannot deal with the magic identifier"""
magic_identifier = unquote(self.get_id().identifier)
orig_identifier = magic_identifier.split('?')[0]
collection = JSONClientValidated('assessment_authoring',
... | python | {
"resource": ""
} |
q47672 | ScaffoldDownAssessmentPartRecord.get_assessment_part | train | def get_assessment_part(self):
"""If there's an AssessmentSection ask it first for the part.
This will take advantage of the fact that the AssessmentSection may
have already cached the Part in question.
"""
if self._magic_parent_id is None:
assessment_part_id = Id(s... | python | {
"resource": ""
} |
q47673 | ScaffoldDownAssessmentPartFormRecord.get_item_ids_metadata | train | def get_item_ids_metadata(self):
"""get the metadata for item"""
metadata = dict(self._item_ids_metadata)
metadata.update({'existing_id_values': self.my_osid_object_form._my_map['itemIds']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47674 | ScaffoldDownAssessmentPartFormRecord.set_item_ids | train | def set_item_ids(self, item_ids):
'''the target Item
This can only be set if there is no learning objective set
'''
if self.get_item_ids_metadata().is_read_only():
raise NoAccess()
for item_id in item_ids:
if not self.my_osid_object_form._is_valid_id(ite... | python | {
"resource": ""
} |
q47675 | ScaffoldDownAssessmentPartFormRecord.get_learning_objective_ids_metadata | train | def get_learning_objective_ids_metadata(self):
"""get the metadata for learning objective"""
metadata = dict(self._learning_objective_ids_metadata)
metadata.update({'existing_id_values': self.my_osid_object_form._my_map['learningObjectiveIds'][0]})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47676 | ScaffoldDownAssessmentPartFormRecord.set_learning_objective_ids | train | def set_learning_objective_ids(self, learning_objective_ids):
"""the learning objective to find related items for
This can only be set if there are no items specifically set
"""
if self.get_learning_objective_ids_metadata().is_read_only():
raise NoAccess()
for learn... | python | {
"resource": ""
} |
q47677 | ScaffoldDownAssessmentPartFormRecord.get_max_levels_metadata | train | def get_max_levels_metadata(self):
"""get the metadata for max levels"""
metadata = dict(self._max_levels_metadata)
metadata.update({'existing_cardinal_values': self.my_osid_object_form._my_map['maxLevels']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47678 | ScaffoldDownAssessmentPartFormRecord.get_max_waypoint_items_metadata | train | def get_max_waypoint_items_metadata(self):
"""get the metadata for max waypoint items"""
metadata = dict(self._max_waypoint_items_metadata)
metadata.update({'existing_cardinal_values': self.my_osid_object_form._my_map['maxWaypointItems']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47679 | ScaffoldDownAssessmentPartFormRecord.set_max_waypoint_items | train | def set_max_waypoint_items(self, max_waypoint_items):
"""This determines how many waypoint items will be seen for a scaffolded wrong answer"""
if self.get_max_waypoint_items_metadata().is_read_only():
raise NoAccess()
if not self.my_osid_object_form._is_valid_cardinal(max_waypoint_it... | python | {
"resource": ""
} |
q47680 | ScaffoldDownAssessmentPartFormRecord.get_waypoint_quota_metadata | train | def get_waypoint_quota_metadata(self):
"""get the metadata for waypoint quota"""
metadata = dict(self._waypoint_quota_metadata)
metadata.update({'existing_cardinal_values': self.my_osid_object_form._my_map['waypointQuota']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47681 | ScaffoldDownAssessmentPartFormRecord.set_waypoint_quota | train | def set_waypoint_quota(self, waypoint_quota):
"""how many waypoint questions need to be answered correctly"""
if self.get_waypoint_quota_metadata().is_read_only():
raise NoAccess()
if not self.my_osid_object_form._is_valid_cardinal(waypoint_quota,
... | python | {
"resource": ""
} |
q47682 | ScaffoldDownAssessmentPartFormRecord.get_item_bank_id_metadata | train | def get_item_bank_id_metadata(self):
"""get the metadata for item bank"""
metadata = dict(self._item_bank_id_metadata)
metadata.update({'existing_id_values': self.my_osid_object_form._my_map['itemBankId']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47683 | ScaffoldDownAssessmentPartFormRecord.set_item_bank_id | train | def set_item_bank_id(self, bank_id):
"""the assessment bank in which to search for items, such as related to an objective"""
if self.get_item_bank_id_metadata().is_read_only():
raise NoAccess()
if not self.my_osid_object_form._is_valid_id(bank_id):
raise InvalidArgument()... | python | {
"resource": ""
} |
q47684 | ScaffoldDownAssessmentPartFormRecord.get_allow_repeat_items_metadata | train | def get_allow_repeat_items_metadata(self):
"""get the metadata for allow repeat items"""
metadata = dict(self._allow_repeat_items_metadata)
metadata.update({'existing_id_values': self.my_osid_object_form._my_map['allowRepeatItems']})
return Metadata(**metadata) | python | {
"resource": ""
} |
q47685 | ScaffoldDownAssessmentPartFormRecord.set_allow_repeat_items | train | def set_allow_repeat_items(self, allow_repeat_items):
"""determines if repeat items will be shown, or if the scaffold iteration will simply stop"""
if self.get_allow_repeat_items_metadata().is_read_only():
raise NoAccess()
if not self.my_osid_object_form._is_valid_boolean(allow_repea... | python | {
"resource": ""
} |
q47686 | ScaffoldDownAssessmentPartFormRecord.clear_allow_repeat_items | train | def clear_allow_repeat_items(self):
"""reset allow repeat itmes to default value"""
if (self.get_allow_repeat_items_metadata().is_read_only() or
self.get_allow_repeat_items_metadata().is_required()):
raise NoAccess()
self.my_osid_object_form._my_map['allowRepeatItems'... | python | {
"resource": ""
} |
q47687 | ObjectiveLookupSession.get_objective_bank | train | def get_objective_bank(self):
"""Gets the ObjectiveBank associated with this session.
return: (osid.learning.ObjectiveBank) - the ObjectiveBank
associated with this session
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization fail... | python | {
"resource": ""
} |
q47688 | ObjectiveHierarchySession.can_access_objective_hierarchy | train | def can_access_objective_hierarchy(self):
"""Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a PermissionDenied. This is intended as a
... | python | {
"resource": ""
} |
q47689 | ObjectiveHierarchySession.get_root_objective_ids | train | def get_root_objective_ids(self):
"""Gets the root objective Ids in this hierarchy.
return: (osid.id.IdList) - the root objective Ids
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
compliance: mandatory - This method must be... | python | {
"resource": ""
} |
q47690 | ObjectiveHierarchySession.is_parent_of_objective | train | def is_parent_of_objective(self, id_=None, objective_id=None):
"""Tests if an Id is a direct parent of an objective.
arg: id (osid.id.Id): an Id
arg: objective_id (osid.id.Id): the Id of an objective
return: (boolean) - true if this id is a parent of objective_id,
... | python | {
"resource": ""
} |
q47691 | ObjectiveHierarchySession.is_child_of_objective | train | def is_child_of_objective(self, id_=None, objective_id=None):
"""Tests if an objective is a direct child of another.
arg: id (osid.id.Id): an Id
arg: objective_id (osid.id.Id): the Id of an objective
return: (boolean) - true if the id is a child of objective_id,
fa... | python | {
"resource": ""
} |
q47692 | ObjectiveHierarchySession.get_child_objective_ids | train | def get_child_objective_ids(self, objective_id=None):
"""Gets the child Ids of the given objective.
arg: objective_id (osid.id.Id): the Id to query
return: (osid.id.IdList) - the children of the objective
raise: NotFound - objective_id is not found
raise: NullArgument - obj... | python | {
"resource": ""
} |
q47693 | ObjectiveHierarchySession.get_objective_nodes | train | def get_objective_nodes(self,
objective_id=None,
ancestor_levels=None,
descendant_levels=None,
include_siblings=None):
"""Gets a portion of the hierarchy for the given objective.
arg: obje... | python | {
"resource": ""
} |
q47694 | ObjectiveHierarchyDesignSession.can_modify_objective_hierarchy | train | def can_modify_objective_hierarchy(self):
"""Tests if this user can change the hierarchy.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known performing any update
will result in a PermissionDenied. This is intended as a hint to
... | python | {
"resource": ""
} |
q47695 | ObjectiveHierarchyDesignSession.remove_child_objectives | train | def remove_child_objectives(self, objective_id=None):
"""Removes all children from an objective.
arg: objective_id (osid.id.Id): the Id of an objective
raise: NotFound - objective_id not found
raise: NullArgument - objective_id is null
raise: OperationFailed - unable to co... | python | {
"resource": ""
} |
q47696 | ObjectiveSequencingSession.can_sequence_objectives | train | def can_sequence_objectives(self):
"""Tests if this user can sequence objectives.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known performing any update
will result in a PermissionDenied. This is intended as a hint to
an ... | python | {
"resource": ""
} |
q47697 | ObjectiveSequencingSession.move_objective_behind | train | def move_objective_behind(self, parent_objective_id=None, reference_objective_id=None, objective_id=None):
"""Moves an objective behind a refrence objective under the given
parent.
arg: parent_objective_id (osid.id.Id): the Id of the parent
objective
arg: reference... | python | {
"resource": ""
} |
q47698 | ObjectiveRequisiteSession.can_lookup_objective_prerequisites | train | def can_lookup_objective_prerequisites(self):
"""Tests if this user can perform Objective lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a PermissionDenied. This is intended a... | python | {
"resource": ""
} |
q47699 | ObjectiveRequisiteSession.get_all_requisite_objectives | train | def get_all_requisite_objectives(self, objective_id=None):
"""Gets a list of Objectives that are the requisites for the given
Objective including the requistes of the requisites, and so on.
In plenary mode, the returned list contains all of the immediate
requisites, or an error results ... | python | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.