repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_code_tokens
listlengths
15
672k
func_documentation_string
stringlengths
1
47.2k
func_documentation_tokens
listlengths
1
3.92k
split_name
stringclasses
1 value
func_code_url
stringlengths
85
339
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.is_ancestor_of_vault
def is_ancestor_of_vault(self, id_, vault_id): """Tests if an ``Id`` is an ancestor of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if this ``id`` is an ancestor of ``vault_id,`` ``false`` ...
python
def is_ancestor_of_vault(self, id_, vault_id): """Tests if an ``Id`` is an ancestor of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if this ``id`` is an ancestor of ``vault_id,`` ``false`` ...
[ "def", "is_ancestor_of_vault", "(", "self", ",", "id_", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_ancestor_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_cata...
Tests if an ``Id`` is an ancestor of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if this ``id`` is an ancestor of ``vault_id,`` ``false`` otherwise raise: NotFound - ``vault_id`` is not f...
[ "Tests", "if", "an", "Id", "is", "an", "ancestor", "of", "a", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3141-L3160
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.has_child_vaults
def has_child_vaults(self, vault_id): """Tests if a vault has any children. arg: vault_id (osid.id.Id): a ``vault_id`` return: (boolean) - ``true`` if the ``vault_id`` has children, ``false`` otherwise raise: NotFound - ``vault_id`` is not found raise: NullA...
python
def has_child_vaults(self, vault_id): """Tests if a vault has any children. arg: vault_id (osid.id.Id): a ``vault_id`` return: (boolean) - ``true`` if the ``vault_id`` has children, ``false`` otherwise raise: NotFound - ``vault_id`` is not found raise: NullA...
[ "def", "has_child_vaults", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.has_child_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ".", "...
Tests if a vault has any children. arg: vault_id (osid.id.Id): a ``vault_id`` return: (boolean) - ``true`` if the ``vault_id`` has children, ``false`` otherwise raise: NotFound - ``vault_id`` is not found raise: NullArgument - ``vault_id`` is ``null`` raise:...
[ "Tests", "if", "a", "vault", "has", "any", "children", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3163-L3180
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.is_child_of_vault
def is_child_of_vault(self, id_, vault_id): """Tests if a vault is a direct child of another. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a child of ``vault_id,`` ``false`` otherwi...
python
def is_child_of_vault(self, id_, vault_id): """Tests if a vault is a direct child of another. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a child of ``vault_id,`` ``false`` otherwi...
[ "def", "is_child_of_vault", "(", "self", ",", "id_", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_child_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_se...
Tests if a vault is a direct child of another. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a child of ``vault_id,`` ``false`` otherwise raise: NotFound - ``vault_id`` not found ...
[ "Tests", "if", "a", "vault", "is", "a", "direct", "child", "of", "another", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3183-L3202
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.get_child_vault_ids
def get_child_vault_ids(self, vault_id): """Gets the child ``Ids`` of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.id.IdList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument - ``vault_id`` is ``nu...
python
def get_child_vault_ids(self, vault_id): """Gets the child ``Ids`` of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.id.IdList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument - ``vault_id`` is ``nu...
[ "def", "get_child_vault_ids", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_child_bin_ids", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", "....
Gets the child ``Ids`` of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.id.IdList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument - ``vault_id`` is ``null`` raise: OperationFailed - unable to com...
[ "Gets", "the", "child", "Ids", "of", "the", "given", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3205-L3221
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.get_child_vaults
def get_child_vaults(self, vault_id): """Gets the children of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.authorization.VaultList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument ...
python
def get_child_vaults(self, vault_id): """Gets the children of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.authorization.VaultList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument ...
[ "def", "get_child_vaults", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_child_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ".", "...
Gets the children of the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query return: (osid.authorization.VaultList) - the children of the vault raise: NotFound - ``vault_id`` is not found raise: NullArgument - ``vault_id`` is ``null`` raise: Operat...
[ "Gets", "the", "children", "of", "the", "given", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3224-L3244
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.is_descendant_of_vault
def is_descendant_of_vault(self, id_, vault_id): """Tests if an ``Id`` is a descendant of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a descendant of the ``vault_id,`` ``f...
python
def is_descendant_of_vault(self, id_, vault_id): """Tests if an ``Id`` is a descendant of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a descendant of the ``vault_id,`` ``f...
[ "def", "is_descendant_of_vault", "(", "self", ",", "id_", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_descendant_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_...
Tests if an ``Id`` is a descendant of a vault. arg: id (osid.id.Id): an ``Id`` arg: vault_id (osid.id.Id): the ``Id`` of a vault return: (boolean) - ``true`` if the ``id`` is a descendant of the ``vault_id,`` ``false`` otherwise raise: NotFound - ``vault_id`` not...
[ "Tests", "if", "an", "Id", "is", "a", "descendant", "of", "a", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3247-L3266
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchySession.get_vault_nodes
def get_vault_nodes(self, vault_id, ancestor_levels, descendant_levels, include_siblings): """Gets a portion of the hierarchy for the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query arg: ancestor_levels (cardinal): the maximum number of ancestor levels to incl...
python
def get_vault_nodes(self, vault_id, ancestor_levels, descendant_levels, include_siblings): """Gets a portion of the hierarchy for the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query arg: ancestor_levels (cardinal): the maximum number of ancestor levels to incl...
[ "def", "get_vault_nodes", "(", "self", ",", "vault_id", ",", "ancestor_levels", ",", "descendant_levels", ",", "include_siblings", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_bin_nodes", "return", "objects", ".", "VaultNode", "(", "...
Gets a portion of the hierarchy for the given vault. arg: vault_id (osid.id.Id): the ``Id`` to query arg: ancestor_levels (cardinal): the maximum number of ancestor levels to include. A value of 0 returns no parents in the node. arg: descendant_levels (c...
[ "Gets", "a", "portion", "of", "the", "hierarchy", "for", "the", "given", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3305-L3332
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchyDesignSession.add_root_vault
def add_root_vault(self, vault_id): """Adds a root vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: AlreadyExists - ``vault_id`` is already in hierarchy raise: NotFound - ``vault_id`` not found raise: NullArgument - ``vault_id`` is ``null`` raise: O...
python
def add_root_vault(self, vault_id): """Adds a root vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: AlreadyExists - ``vault_id`` is already in hierarchy raise: NotFound - ``vault_id`` not found raise: NullArgument - ``vault_id`` is ``null`` raise: O...
[ "def", "add_root_vault", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.add_root_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session",...
Adds a root vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: AlreadyExists - ``vault_id`` is already in hierarchy raise: NotFound - ``vault_id`` not found raise: NullArgument - ``vault_id`` is ``null`` raise: OperationFailed - unable to complete request ...
[ "Adds", "a", "root", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3417-L3433
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchyDesignSession.remove_root_vault
def remove_root_vault(self, vault_id): """Removes a root vault from this hierarchy. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` not a parent of ``child_id`` raise: NullArgument - ``vault_id`` or ``child_id`` is ``null`` raise: Operation...
python
def remove_root_vault(self, vault_id): """Removes a root vault from this hierarchy. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` not a parent of ``child_id`` raise: NullArgument - ``vault_id`` or ``child_id`` is ``null`` raise: Operation...
[ "def", "remove_root_vault", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.remove_root_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_ses...
Removes a root vault from this hierarchy. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` not a parent of ``child_id`` raise: NullArgument - ``vault_id`` or ``child_id`` is ``null`` raise: OperationFailed - unable to complete request raise:...
[ "Removes", "a", "root", "vault", "from", "this", "hierarchy", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3436-L3451
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchyDesignSession.add_child_vault
def add_child_vault(self, vault_id, child_id): """Adds a child to a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the new child raise: AlreadyExists - ``vault_id`` is already a parent of ``child_id`` rai...
python
def add_child_vault(self, vault_id, child_id): """Adds a child to a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the new child raise: AlreadyExists - ``vault_id`` is already a parent of ``child_id`` rai...
[ "def", "add_child_vault", "(", "self", ",", "vault_id", ",", "child_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.add_child_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", "."...
Adds a child to a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the new child raise: AlreadyExists - ``vault_id`` is already a parent of ``child_id`` raise: NotFound - ``vault_id`` or ``child_id`` not found ...
[ "Adds", "a", "child", "to", "a", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3454-L3472
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchyDesignSession.remove_child_vault
def remove_child_vault(self, vault_id, child_id): """Removes a child from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the child raise: NotFound - ``vault_id`` not parent of ``child_id`` raise: NullArgument - ``vaul...
python
def remove_child_vault(self, vault_id, child_id): """Removes a child from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the child raise: NotFound - ``vault_id`` not parent of ``child_id`` raise: NullArgument - ``vaul...
[ "def", "remove_child_vault", "(", "self", ",", "vault_id", ",", "child_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.remove_child_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self",...
Removes a child from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault arg: child_id (osid.id.Id): the ``Id`` of the child raise: NotFound - ``vault_id`` not parent of ``child_id`` raise: NullArgument - ``vault_id`` or ``child_id`` is ``null`` raise: OperationF...
[ "Removes", "a", "child", "from", "a", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3475-L3491
mitsei/dlkit
dlkit/json_/authorization/sessions.py
VaultHierarchyDesignSession.remove_child_vaults
def remove_child_vaults(self, vault_id): """Removes all children from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` is not in hierarchy raise: NullArgument - ``vault_id`` is ``null`` raise: OperationFailed - unable to complete re...
python
def remove_child_vaults(self, vault_id): """Removes all children from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` is not in hierarchy raise: NullArgument - ``vault_id`` is ``null`` raise: OperationFailed - unable to complete re...
[ "def", "remove_child_vaults", "(", "self", ",", "vault_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.remove_child_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_...
Removes all children from a vault. arg: vault_id (osid.id.Id): the ``Id`` of a vault raise: NotFound - ``vault_id`` is not in hierarchy raise: NullArgument - ``vault_id`` is ``null`` raise: OperationFailed - unable to complete request raise: PermissionDenied - authorizati...
[ "Removes", "all", "children", "from", "a", "vault", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/authorization/sessions.py#L3494-L3509
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemLookupSession.get_grade_system
def get_grade_system(self, grade_system_id): """Gets the ``GradeSystem`` specified by its ``Id``. In plenary mode, the exact ``Id`` is found or a ``NotFound`` results. Otherwise, the returned ``GradeSystem`` may have a different ``Id`` than requested, such as the case where a du...
python
def get_grade_system(self, grade_system_id): """Gets the ``GradeSystem`` specified by its ``Id``. In plenary mode, the exact ``Id`` is found or a ``NotFound`` results. Otherwise, the returned ``GradeSystem`` may have a different ``Id`` than requested, such as the case where a du...
[ "def", "get_grade_system", "(", "self", ",", "grade_system_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resource", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grading'", ...
Gets the ``GradeSystem`` specified by its ``Id``. In plenary mode, the exact ``Id`` is found or a ``NotFound`` results. Otherwise, the returned ``GradeSystem`` may have a different ``Id`` than requested, such as the case where a duplicate ``Id`` was assigned to a ``GradeSystem`` and ret...
[ "Gets", "the", "GradeSystem", "specified", "by", "its", "Id", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L187-L215
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemLookupSession.get_grade_systems_by_ids
def get_grade_systems_by_ids(self, grade_system_ids): """Gets a ``GradeSystemList`` corresponding to the given ``IdList``. In plenary mode, the returned list contains all of the systems specified in the ``Id`` list, in the order of the list, including duplicates, or an error results if ...
python
def get_grade_systems_by_ids(self, grade_system_ids): """Gets a ``GradeSystemList`` corresponding to the given ``IdList``. In plenary mode, the returned list contains all of the systems specified in the ``Id`` list, in the order of the list, including duplicates, or an error results if ...
[ "def", "get_grade_systems_by_ids", "(", "self", ",", "grade_system_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_ids", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(",...
Gets a ``GradeSystemList`` corresponding to the given ``IdList``. In plenary mode, the returned list contains all of the systems specified in the ``Id`` list, in the order of the list, including duplicates, or an error results if an ``Id`` in the supplied list is not found or inaccessib...
[ "Gets", "a", "GradeSystemList", "corresponding", "to", "the", "given", "IdList", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L233-L274
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemLookupSession.get_grade_systems_by_genus_type
def get_grade_systems_by_genus_type(self, grade_system_genus_type): """Gets a ``GradeSystemList`` corresponding to the given grade system genus ``Type`` which does not include systems of genus types derived from the specified ``Type``. In plenary mode, the returned list contains all known systems or ...
python
def get_grade_systems_by_genus_type(self, grade_system_genus_type): """Gets a ``GradeSystemList`` corresponding to the given grade system genus ``Type`` which does not include systems of genus types derived from the specified ``Type``. In plenary mode, the returned list contains all known systems or ...
[ "def", "get_grade_systems_by_genus_type", "(", "self", ",", "grade_system_genus_type", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_genus_type", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONCli...
Gets a ``GradeSystemList`` corresponding to the given grade system genus ``Type`` which does not include systems of genus types derived from the specified ``Type``. In plenary mode, the returned list contains all known systems or an error results. Otherwise, the returned list may contain only t...
[ "Gets", "a", "GradeSystemList", "corresponding", "to", "the", "given", "grade", "system", "genus", "Type", "which", "does", "not", "include", "systems", "of", "genus", "types", "derived", "from", "the", "specified", "Type", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L277-L303
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemLookupSession.get_grade_systems
def get_grade_systems(self): """Gets all ``GradeSystems``. In plenary mode, the returned list contains all known grade systems or an error results. Otherwise, the returned list may contain only those grade systems that are accessible through this session. return: (osid....
python
def get_grade_systems(self): """Gets all ``GradeSystems``. In plenary mode, the returned list contains all known grade systems or an error results. Otherwise, the returned list may contain only those grade systems that are accessible through this session. return: (osid....
[ "def", "get_grade_systems", "(", "self", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=...
Gets all ``GradeSystems``. In plenary mode, the returned list contains all known grade systems or an error results. Otherwise, the returned list may contain only those grade systems that are accessible through this session. return: (osid.grading.GradeSystemList) - a ``GradeSyst...
[ "Gets", "all", "GradeSystems", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L351-L372
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemQuerySession.get_grade_systems_by_query
def get_grade_systems_by_query(self, grade_system_query): """Gets a list of ``GradeSystem`` objects matching the given grade system query. arg: grade_system_query (osid.grading.GradeSystemQuery): the grade system query return: (osid.grading.GradeSystemList) - the returned ...
python
def get_grade_systems_by_query(self, grade_system_query): """Gets a list of ``GradeSystem`` objects matching the given grade system query. arg: grade_system_query (osid.grading.GradeSystemQuery): the grade system query return: (osid.grading.GradeSystemList) - the returned ...
[ "def", "get_grade_systems_by_query", "(", "self", ",", "grade_system_query", ")", ":", "# Implemented from template for", "# osid.resource.ResourceQuerySession.get_resources_by_query", "and_list", "=", "list", "(", ")", "or_list", "=", "list", "(", ")", "for", "term", "in...
Gets a list of ``GradeSystem`` objects matching the given grade system query. arg: grade_system_query (osid.grading.GradeSystemQuery): the grade system query return: (osid.grading.GradeSystemList) - the returned ``GradeSystemList`` raise: NullArgument - ``gra...
[ "Gets", "a", "list", "of", "GradeSystem", "objects", "matching", "the", "given", "grade", "system", "query", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L498-L539
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.get_grade_system_form_for_create
def get_grade_system_form_for_create(self, grade_system_record_types): """Gets the grade system form for creating new grade systems. A new form should be requested for each create transaction. arg: grade_system_record_types (osid.type.Type[]): array of grade system types ...
python
def get_grade_system_form_for_create(self, grade_system_record_types): """Gets the grade system form for creating new grade systems. A new form should be requested for each create transaction. arg: grade_system_record_types (osid.type.Type[]): array of grade system types ...
[ "def", "get_grade_system_form_for_create", "(", "self", ",", "grade_system_record_types", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.get_resource_form_for_create_template", "for", "arg", "in", "grade_system_record_types", ":", "if", "not", "i...
Gets the grade system form for creating new grade systems. A new form should be requested for each create transaction. arg: grade_system_record_types (osid.type.Type[]): array of grade system types return: (osid.grading.GradeSystemForm) - the grade system form raise:...
[ "Gets", "the", "grade", "system", "form", "for", "creating", "new", "grade", "systems", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L667-L702
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.create_grade_system
def create_grade_system(self, grade_system_form): """Creates a new ``GradeSystem``. arg: grade_system_form (osid.grading.GradeSystemForm): the form for this ``GradeSystem`` return: (osid.grading.GradeSystem) - the new ``GradeSystem`` raise: IllegalState - ``grade_sys...
python
def create_grade_system(self, grade_system_form): """Creates a new ``GradeSystem``. arg: grade_system_form (osid.grading.GradeSystemForm): the form for this ``GradeSystem`` return: (osid.grading.GradeSystem) - the new ``GradeSystem`` raise: IllegalState - ``grade_sys...
[ "def", "create_grade_system", "(", "self", ",", "grade_system_form", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.create_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeSystem'", ...
Creates a new ``GradeSystem``. arg: grade_system_form (osid.grading.GradeSystemForm): the form for this ``GradeSystem`` return: (osid.grading.GradeSystem) - the new ``GradeSystem`` raise: IllegalState - ``grade_system_form`` already used in a create transacti...
[ "Creates", "a", "new", "GradeSystem", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L705-L747
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.update_grade_system
def update_grade_system(self, grade_system_form): """Updates an existing grade system. arg: grade_system_form (osid.grading.GradeSystemForm): the form containing the elements to be updated raise: IllegalState - ``grade_system_form`` already used in an update ...
python
def update_grade_system(self, grade_system_form): """Updates an existing grade system. arg: grade_system_form (osid.grading.GradeSystemForm): the form containing the elements to be updated raise: IllegalState - ``grade_system_form`` already used in an update ...
[ "def", "update_grade_system", "(", "self", ",", "grade_system_form", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.update_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeSystem'", ...
Updates an existing grade system. arg: grade_system_form (osid.grading.GradeSystemForm): the form containing the elements to be updated raise: IllegalState - ``grade_system_form`` already used in an update transaction raise: InvalidArgument - the form contai...
[ "Updates", "an", "existing", "grade", "system", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L804-L844
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.delete_grade_system
def delete_grade_system(self, grade_system_id): """Deletes a ``GradeSystem``. arg: grade_system_id (osid.id.Id): the ``Id`` of the ``GradeSystem`` to remove raise: NotFound - ``grade_system_id`` not found raise: NullArgument - ``grade_system_id`` is ``null`` ...
python
def delete_grade_system(self, grade_system_id): """Deletes a ``GradeSystem``. arg: grade_system_id (osid.id.Id): the ``Id`` of the ``GradeSystem`` to remove raise: NotFound - ``grade_system_id`` not found raise: NullArgument - ``grade_system_id`` is ``null`` ...
[ "def", "delete_grade_system", "(", "self", ",", "grade_system_id", ")", ":", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeSystem'", ",", "runtime", "=", "self", ".", "_runtime", ")", "if", "not", "isinstance", "(", ...
Deletes a ``GradeSystem``. arg: grade_system_id (osid.id.Id): the ``Id`` of the ``GradeSystem`` to remove raise: NotFound - ``grade_system_id`` not found raise: NullArgument - ``grade_system_id`` is ``null`` raise: OperationFailed - unable to complete request ...
[ "Deletes", "a", "GradeSystem", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L867-L894
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.alias_grade_system
def alias_grade_system(self, grade_system_id, alias_id): """Adds an ``Id`` to a ``GradeSystem`` for the purpose of creating compatibility. The primary ``Id`` of the ``GradeSystem`` is determined by the provider. The new ``Id`` performs as an alias to the primary ``Id``. If the alias is ...
python
def alias_grade_system(self, grade_system_id, alias_id): """Adds an ``Id`` to a ``GradeSystem`` for the purpose of creating compatibility. The primary ``Id`` of the ``GradeSystem`` is determined by the provider. The new ``Id`` performs as an alias to the primary ``Id``. If the alias is ...
[ "def", "alias_grade_system", "(", "self", ",", "grade_system_id", ",", "alias_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.alias_resources_template", "self", ".", "_alias_id", "(", "primary_id", "=", "grade_system_id", ",", "equivale...
Adds an ``Id`` to a ``GradeSystem`` for the purpose of creating compatibility. The primary ``Id`` of the ``GradeSystem`` is determined by the provider. The new ``Id`` performs as an alias to the primary ``Id``. If the alias is a pointer to another grade system, it is reassigned to the g...
[ "Adds", "an", "Id", "to", "a", "GradeSystem", "for", "the", "purpose", "of", "creating", "compatibility", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L915-L937
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.get_grade_form_for_create
def get_grade_form_for_create(self, grade_system_id, grade_record_types): """Gets the grade form for creating new grades. A new form should be requested for each create transaction. arg: grade_system_id (osid.id.Id): the ``Id`` of a ``GradeSystem`` arg: grade_reco...
python
def get_grade_form_for_create(self, grade_system_id, grade_record_types): """Gets the grade form for creating new grades. A new form should be requested for each create transaction. arg: grade_system_id (osid.id.Id): the ``Id`` of a ``GradeSystem`` arg: grade_reco...
[ "def", "get_grade_form_for_create", "(", "self", ",", "grade_system_id", ",", "grade_record_types", ")", ":", "# Implemented from template for", "# osid.learning.ActivityAdminSession.get_activity_form_for_create_template", "if", "not", "isinstance", "(", "grade_system_id", ",", "...
Gets the grade form for creating new grades. A new form should be requested for each create transaction. arg: grade_system_id (osid.id.Id): the ``Id`` of a ``GradeSystem`` arg: grade_record_types (osid.type.Type[]): array of grade recod types retur...
[ "Gets", "the", "grade", "form", "for", "creating", "new", "grades", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L991-L1037
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.create_grade
def create_grade(self, grade_form): """Creates a new ``Grade``. arg: grade_form (osid.grading.GradeForm): the form for this ``Grade`` return: (osid.grading.Grade) - the new ``Grade`` raise: IllegalState - ``grade_form`` already used in a create transa...
python
def create_grade(self, grade_form): """Creates a new ``Grade``. arg: grade_form (osid.grading.GradeForm): the form for this ``Grade`` return: (osid.grading.Grade) - the new ``Grade`` raise: IllegalState - ``grade_form`` already used in a create transa...
[ "def", "create_grade", "(", "self", ",", "grade_form", ")", ":", "# Implemented from template for", "# osid.repository.AssetAdminSession.create_asset_content_template", "from", "dlkit", ".", "abstract_osid", ".", "grading", ".", "objects", "import", "GradeForm", "as", "ABCG...
Creates a new ``Grade``. arg: grade_form (osid.grading.GradeForm): the form for this ``Grade`` return: (osid.grading.Grade) - the new ``Grade`` raise: IllegalState - ``grade_form`` already used in a create transaction raise: InvalidArgument - one or ...
[ "Creates", "a", "new", "Grade", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1040-L1088
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.update_grade
def update_grade(self, grade_form): """Updates an existing grade. arg: grade_form (osid.grading.GradeForm): the form containing the elements to be updated raise: IllegalState - ``grade_form`` already used in an update transaction raise: InvalidArgume...
python
def update_grade(self, grade_form): """Updates an existing grade. arg: grade_form (osid.grading.GradeForm): the form containing the elements to be updated raise: IllegalState - ``grade_form`` already used in an update transaction raise: InvalidArgume...
[ "def", "update_grade", "(", "self", ",", "grade_form", ")", ":", "# Implemented from template for", "# osid.repository.AssetAdminSession.update_asset_content_template", "from", "dlkit", ".", "abstract_osid", ".", "grading", ".", "objects", "import", "GradeForm", "as", "ABCG...
Updates an existing grade. arg: grade_form (osid.grading.GradeForm): the form containing the elements to be updated raise: IllegalState - ``grade_form`` already used in an update transaction raise: InvalidArgument - the form contains an invalid value ...
[ "Updates", "an", "existing", "grade", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1148-L1208
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemAdminSession.delete_grade
def delete_grade(self, grade_id): """Deletes a ``Grade``. arg: grade_id (osid.id.Id): the ``Id`` of the ``Grade`` to remove raise: NotFound - ``grade_id`` not found raise: NullArgument - ``grade_id`` is ``null`` raise: OperationFailed - unable to complete r...
python
def delete_grade(self, grade_id): """Deletes a ``Grade``. arg: grade_id (osid.id.Id): the ``Id`` of the ``Grade`` to remove raise: NotFound - ``grade_id`` not found raise: NullArgument - ``grade_id`` is ``null`` raise: OperationFailed - unable to complete r...
[ "def", "delete_grade", "(", "self", ",", "grade_id", ")", ":", "# Implemented from template for", "# osid.repository.AssetAdminSession.delete_asset_content_template", "from", "dlkit", ".", "abstract_osid", ".", "id", ".", "primitives", "import", "Id", "as", "ABCId", "from...
Deletes a ``Grade``. arg: grade_id (osid.id.Id): the ``Id`` of the ``Grade`` to remove raise: NotFound - ``grade_id`` not found raise: NullArgument - ``grade_id`` is ``null`` raise: OperationFailed - unable to complete request raise: PermissionDenied - aut...
[ "Deletes", "a", "Grade", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1235-L1271
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_grade_system_ids_by_gradebook
def get_grade_system_ids_by_gradebook(self, gradebook_id): """Gets the list of ``GradeSystem`` ``Ids`` associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.id.IdList) - list of related grade system ``Ids`` raise: NotFound - ``gr...
python
def get_grade_system_ids_by_gradebook(self, gradebook_id): """Gets the list of ``GradeSystem`` ``Ids`` associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.id.IdList) - list of related grade system ``Ids`` raise: NotFound - ``gr...
[ "def", "get_grade_system_ids_by_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resource_ids_by_bin", "id_list", "=", "[", "]", "for", "grade_system", "in", "self", ".", "get_grade_systems_by_gra...
Gets the list of ``GradeSystem`` ``Ids`` associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.id.IdList) - list of related grade system ``Ids`` raise: NotFound - ``gradebook_id`` is not found raise: NullArgument - ``gradebook_i...
[ "Gets", "the", "list", "of", "GradeSystem", "Ids", "associated", "with", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1395-L1412
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_grade_systems_by_gradebook
def get_grade_systems_by_gradebook(self, gradebook_id): """Gets the list of grade systems associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.grading.GradeSystemList) - list of related grade systems raise: NotFou...
python
def get_grade_systems_by_gradebook(self, gradebook_id): """Gets the list of grade systems associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.grading.GradeSystemList) - list of related grade systems raise: NotFou...
[ "def", "get_grade_systems_by_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resources_by_bin", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", "=", "True", ...
Gets the list of grade systems associated with a ``Gradebook``. arg: gradebook_id (osid.id.Id): ``Id`` of the ``Gradebook`` return: (osid.grading.GradeSystemList) - list of related grade systems raise: NotFound - ``gradebook_id`` is not found raise: NullArgument - `...
[ "Gets", "the", "list", "of", "grade", "systems", "associated", "with", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1415-L1433
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_grade_system_ids_by_gradebooks
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
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...
[ "def", "get_grade_system_ids_by_gradebooks", "(", "self", ",", "gradebook_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resource_ids_by_bins", "id_list", "=", "[", "]", "for", "grade_system", "in", "self", ".", "get_grade_systems_by_...
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`` raise: NullArgument - ``gradebook_ids`` is ``null`` raise: Operati...
[ "Gets", "the", "list", "of", "GradeSystem", "Ids", "corresponding", "to", "a", "list", "of", "Gradebooks", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1436-L1453
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_grade_systems_by_gradebooks
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
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: ...
[ "def", "get_grade_systems_by_gradebooks", "(", "self", ",", "gradebook_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resources_by_bins", "grade_system_list", "=", "[", "]", "for", "gradebook_id", "in", "gradebook_ids", ":", "grade_sy...
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: NullArgument - ``gradebook_ids`` is ``null`` raise: Operati...
[ "Gets", "the", "list", "of", "grade", "systems", "corresponding", "to", "a", "list", "of", "Gradebooks", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1456-L1474
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_gradebook_ids_by_grade_system
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
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 -...
[ "def", "get_gradebook_ids_by_grade_system", "(", "self", ",", "grade_system_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_bin_ids_by_resource", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", "=", "...
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 - ``grade_system_id`` is not found raise: NullArgument - ``grade_...
[ "Gets", "the", "list", "of", "Gradebook", "Ids", "mapped", "to", "a", "GradeSystem", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1477-L1499
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookSession.get_gradebooks_by_grade_system
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
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...
[ "def", "get_gradebooks_by_grade_system", "(", "self", ",", "grade_system_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_bins_by_resource", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", "=", "True",...
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 - ``grade_system_id`` is not found raise: NullArgument - ``grade_sys...
[ "Gets", "the", "list", "of", "Gradebooks", "mapped", "to", "a", "GradeSystem", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1502-L1520
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookAssignmentSession.get_assignable_gradebook_ids
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
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...
[ "def", "get_assignable_gradebook_ids", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinAssignmentSession.get_assignable_bin_ids", "# This will likely be overridden by an authorization adapter", "mgr", "=", "self", ".", "_get_pr...
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 assignable gradebook ``Ids`` raise: NullArgument - ``gradebook...
[ "Gets", "a", "list", "of", "gradebooks", "including", "and", "under", "the", "given", "gradebook", "node", "in", "which", "any", "grade", "system", "can", "be", "assigned", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1591-L1611
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookAssignmentSession.assign_grade_system_to_gradebook
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
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...
[ "def", "assign_grade_system_to_gradebook", "(", "self", ",", "grade_system_id", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinAssignmentSession.assign_resource_to_bin", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADIN...
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 ``Gradebook`` raise: AlreadyExists - ``grade_system_id`` is already assigned ...
[ "Adds", "an", "existing", "GradeSystem", "to", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1634-L1657
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeSystemGradebookAssignmentSession.unassign_grade_system_from_gradebook
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
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...
[ "def", "unassign_grade_system_from_gradebook", "(", "self", ",", "grade_system_id", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinAssignmentSession.unassign_resource_from_bin", "mgr", "=", "self", ".", "_get_provider_manager", "(", ...
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 ``Gradebook`` raise: NotFound - ``grade_system_id`` or ``gradebook_id`` not ...
[ "Removes", "a", "GradeSystem", "from", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1660-L1682
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entry
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
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...
[ "def", "get_grade_entry", "(", "self", ",", "grade_entry_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resource", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grading'", "...
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 raise: NullArgument - ``grade_entry_id`` is ``null`` ...
[ "Gets", "the", "GradeEntry", "specified", "by", "its", "Id", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1822-L1844
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries_by_ids
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
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`` ...
[ "def", "get_grade_entries_by_ids", "(", "self", ",", "grade_entry_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_ids", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", ...
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`` list raise: NotFound - an ``Id was`` not found ...
[ "Gets", "a", "GradeEntryList", "corresponding", "to", "the", "given", "IdList", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1847-L1880
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries_by_genus_type
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
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 ...
[ "def", "get_grade_entries_by_genus_type", "(", "self", ",", "grade_entry_genus_type", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_genus_type", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClie...
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 genus type return: (osid.grading.GradeEntryList) - the ...
[ "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", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1883-L1905
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries_on_date
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
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 ...
[ "def", "get_grade_entries_on_date", "(", "self", ",", "from_", ",", "to", ")", ":", "# Implemented from template for", "# osid.relationship.RelationshipLookupSession.get_relationships_on_date", "grade_entry_list", "=", "[", "]", "for", "grade_entry", "in", "self", ".", "get...
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 return: (osid.grading.GradeEntryList) - the returned ...
[ "Gets", "a", "GradeEntryList", "effective", "during", "the", "entire", "given", "date", "range", "inclusive", "but", "not", "confined", "to", "the", "date", "range", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1946-L1966
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries_for_gradebook_column_on_date
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
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...
[ "def", "get_grade_entries_for_gradebook_column_on_date", "(", "self", ",", "gradebook_column_id", ",", "from_", ",", "to", ")", ":", "# Implemented from template for", "# osid.relationship.RelationshipLookupSession.get_relationships_for_source_on_date", "grade_entry_list", "=", "[", ...
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 column ``Id`` arg: from (osid.calendaring.DateTime): start of date range ...
[ "Gets", "a", "GradeEntryList", "for", "the", "given", "gradebook", "column", "and", "effective", "during", "the", "entire", "given", "date", "range", "inclusive", "but", "not", "confined", "to", "the", "date", "range", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L1994-L2017
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries_for_gradebook_column_and_resource
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
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...
[ "def", "get_grade_entries_for_gradebook_column_and_resource", "(", "self", ",", "gradebook_column_id", ",", "resource_id", ")", ":", "# Implemented from template for", "# osid.relationship.RelationshipLookupSession.get_relationships_for_peers", "# NOTE: This implementation currently ignores ...
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 resource ``Id`` return: (osid.grading.GradeEntryList) - the returned ``GradeEntry`` li...
[ "Gets", "a", "GradeEntryList", "for", "the", "gradebook", "column", "and", "key", "resource", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2053-L2078
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryLookupSession.get_grade_entries
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
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.* ...
[ "def", "get_grade_entries", "(", "self", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=...
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.*
[ "Gets", "all", "grade", "entries", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2116-L2132
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryQuerySession.get_grade_entries_by_query
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
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...
[ "def", "get_grade_entries_by_query", "(", "self", ",", "grade_entry_query", ")", ":", "# Implemented from template for", "# osid.resource.ResourceQuerySession.get_resources_by_query", "and_list", "=", "list", "(", ")", "or_list", "=", "list", "(", ")", "for", "term", "in"...
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 ``GradeEntryList`` raise: NullArgument - ``grade_entry_query`` is ``...
[ "Gets", "a", "list", "of", "entries", "matching", "the", "given", "grade", "entry", "query", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2260-L2301
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.get_grade_entry_form_for_create
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
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 ...
[ "def", "get_grade_entry_form_for_create", "(", "self", ",", "gradebook_column_id", ",", "resource_id", ",", "grade_entry_record_types", ")", ":", "if", "not", "isinstance", "(", "gradebook_column_id", ",", "ABCId", ")", ":", "raise", "errors", ".", "InvalidArgument", ...
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 arg: resource_id (osid.id.Id): the key resource arg: grade_entry_record_types (osid.type.Type[]): a...
[ "Gets", "the", "grade", "entry", "form", "for", "creating", "new", "grade", "entries", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2428-L2480
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.create_grade_entry
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
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`...
[ "def", "create_grade_entry", "(", "self", ",", "grade_entry_form", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.create_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeEntry'", "...
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`` already used in a create transaction ...
[ "Creates", "a", "new", "GradeEntry", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2483-L2525
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.get_grade_entry_form_for_update
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
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`` ...
[ "def", "get_grade_entry_form_for_update", "(", "self", ",", "grade_entry_id", ")", ":", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeEntry'", ",", "runtime", "=", "self", ".", "_runtime", ")", "if", "not", "isinstance"...
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`` return: (osid.grading.GradeEntryForm) - the grade entry form r...
[ "Gets", "the", "grade", "entry", "form", "for", "updating", "an", "existing", "entry", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2610-L2643
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.update_grade_entry
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
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...
[ "def", "update_grade_entry", "(", "self", ",", "grade_entry_form", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.update_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeEntry'", "...
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 transaction raise: InvalidArgument - the form contains a...
[ "Updates", "an", "existing", "grade", "entry", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2646-L2686
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.delete_grade_entry
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
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 `...
[ "def", "delete_grade_entry", "(", "self", ",", "grade_entry_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.delete_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradeEntry'", ","...
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 ``Id`` raise: NullArgument - ``grade_entry_id`` i...
[ "Deletes", "the", "GradeEntry", "identified", "by", "the", "given", "Id", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2709-L2734
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradeEntryAdminSession.alias_grade_entry
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
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...
[ "def", "alias_grade_entry", "(", "self", ",", "grade_entry_id", ",", "alias_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.alias_resources_template", "self", ".", "_alias_id", "(", "primary_id", "=", "grade_entry_id", ",", "equivalent_...
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 pointer to another grade entry, it is reassigned to the give...
[ "Adds", "an", "Id", "to", "a", "GradeEntry", "for", "the", "purpose", "of", "creating", "compatibility", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2755-L2777
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnLookupSession.get_gradebook_column
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
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...
[ "def", "get_gradebook_column", "(", "self", ",", "gradebook_column_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resource", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grad...
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 where a duplicate ``Id`` was assigned to a ``GradebookColu...
[ "Gets", "the", "GradebookColumn", "specified", "by", "its", "Id", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2897-L2925
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnLookupSession.get_gradebook_columns_by_ids
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
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...
[ "def", "get_gradebook_columns_by_ids", "(", "self", ",", "gradebook_column_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_ids", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated"...
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, or an error results if a ``Id`` in the supplied list is not found ...
[ "Gets", "a", "GradebookColumnList", "corresponding", "to", "the", "given", "IdList", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2928-L2967
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnLookupSession.get_gradebook_columns_by_genus_type
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
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...
[ "def", "get_gradebook_columns_by_genus_type", "(", "self", ",", "gradebook_column_genus_type", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources_by_genus_type", "# NOTE: This implementation currently ignores plenary view", "collection", "=", ...
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 contains all known gradebook columns or an error results. Otherwise, the returned lis...
[ "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", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L2970-L2998
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnLookupSession.get_gradebook_columns
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
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...
[ "def", "get_gradebook_columns", "(", "self", ")", ":", "# Implemented from template for", "# osid.resource.ResourceLookupSession.get_resources", "# NOTE: This implementation currently ignores plenary view", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", ...
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. return: (osid.grading.GradebookColumnList) - ...
[ "Gets", "all", "gradebook", "columns", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3050-L3072
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnLookupSession.get_gradebook_column_summary
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
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...
[ "def", "get_gradebook_column_summary", "(", "self", ",", "gradebook_column_id", ")", ":", "gradebook_column", "=", "self", ".", "get_gradebook_column", "(", "gradebook_column_id", ")", "summary_map", "=", "gradebook_column", ".", "_my_map", "summary_map", "[", "'gradebo...
Gets the ``GradebookColumnSummary`` for summary results. arg: gradebook_column_id (osid.id.Id): ``Id`` of the ``GradebookColumn`` return: (osid.grading.GradebookColumnSummary) - the gradebook column summary raise: NotFound - ``gradebook_column_id`` is not fou...
[ "Gets", "the", "GradebookColumnSummary", "for", "summary", "results", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3088-L3108
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnQuerySession.get_gradebook_columns_by_query
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
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...
[ "def", "get_gradebook_columns_by_query", "(", "self", ",", "gradebook_column_query", ")", ":", "# Implemented from template for", "# osid.resource.ResourceQuerySession.get_resources_by_query", "and_list", "=", "list", "(", ")", "or_list", "=", "list", "(", ")", "for", "term...
Gets a list of gradebook columns matching the given query. arg: gradebook_column_query (osid.grading.GradebookColumnQuery): the gradebook column query return: (osid.grading.GradebookColumnList) - the returned ``GradebookColumnList`` raise: Nul...
[ "Gets", "a", "list", "of", "gradebook", "columns", "matching", "the", "given", "query", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3232-L3274
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.can_create_gradebook_column_with_record_types
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
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...
[ "def", "can_create_gradebook_column_with_record_types", "(", "self", ",", "gradebook_column_record_types", ")", ":", "# Implemented from template for", "# osid.resource.BinAdminSession.can_create_bin_with_record_types", "# NOTE: It is expected that real authentication hints will be", "# handle...
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 method tests which record(s) are required for creating a specific ``GradebookColum...
[ "Tests", "if", "this", "user", "can", "create", "a", "single", "GradebookColumn", "using", "the", "desired", "record", "types", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3379-L3404
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.get_gradebook_column_form_for_create
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
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...
[ "def", "get_gradebook_column_form_for_create", "(", "self", ",", "gradebook_column_record_types", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.get_resource_form_for_create_template", "for", "arg", "in", "gradebook_column_record_types", ":", "if", ...
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 gradebook column record types return: (osid.grading.GradebookColumnForm) - the grade...
[ "Gets", "the", "gradebook", "column", "form", "for", "creating", "new", "gradebook", "columns", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3407-L3444
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.create_gradebook_column
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
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 ...
[ "def", "create_gradebook_column", "(", "self", ",", "gradebook_column_form", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.create_resource_template", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'Gradebo...
Creates a new ``GradebookColumn``. arg: gradebook_column_form (osid.grading.GradebookColumnForm): the form for this ``GradebookColumn`` return: (osid.grading.GradebookColumn) - the new ``GradebookColumn`` raise: IllegalState - ``gradebook_colu...
[ "Creates", "a", "new", "GradebookColumn", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3447-L3492
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.update_gradebook_column
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
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...
[ "def", "update_gradebook_column", "(", "self", ",", "gradebook_column_form", ")", ":", "collection", "=", "JSONClientValidated", "(", "'grading'", ",", "collection", "=", "'GradebookColumn'", ",", "runtime", "=", "self", ".", "_runtime", ")", "if", "not", "isinsta...
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`` already used in an update transaction raise: I...
[ "Updates", "an", "existing", "gradebook", "column", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3552-L3600
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.delete_gradebook_column
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
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 ...
[ "def", "delete_gradebook_column", "(", "self", ",", "gradebook_column_id", ")", ":", "if", "not", "isinstance", "(", "gradebook_column_id", ",", "ABCId", ")", ":", "raise", "errors", ".", "InvalidArgument", "(", "'the argument is not a valid OSID Id'", ")", "# check t...
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 identified by the given ``Id`` raise: NullArgument - ...
[ "Deletes", "the", "GradebookColumn", "identified", "by", "the", "given", "Id", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3681-L3714
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnAdminSession.alias_gradebook_column
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
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``. ...
[ "def", "alias_gradebook_column", "(", "self", ",", "gradebook_column_id", ",", "alias_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceAdminSession.alias_resources_template", "self", ".", "_alias_id", "(", "primary_id", "=", "gradebook_column_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``. If the alias is a pointer to another gradebook column, it is reassig...
[ "Adds", "an", "Id", "to", "a", "GradebookColumn", "for", "the", "purpose", "of", "creating", "compatibility", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3735-L3757
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebook_column_ids_by_gradebook
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
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`` ...
[ "def", "get_gradebook_column_ids_by_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resource_ids_by_bin", "id_list", "=", "[", "]", "for", "gradebook_column", "in", "self", ".", "get_gradebook_co...
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`` raise: NotFound - ``gradebook_id`` is not found raise: Null...
[ "Gets", "the", "list", "of", "GradebookColumn", "Ids", "associated", "with", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3840-L3858
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebook_columns_by_gradebook
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
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 ...
[ "def", "get_gradebook_columns_by_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resources_by_bin", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", "=", "True"...
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 raise: NotFound - ``gradebook_id`` is not found raise: Null...
[ "Gets", "the", "list", "of", "gradebook", "columns", "associated", "with", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3861-L3879
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebook_column_ids_by_gradebooks
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
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`` ...
[ "def", "get_gradebook_column_ids_by_gradebooks", "(", "self", ",", "gradebook_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resource_ids_by_bins", "id_list", "=", "[", "]", "for", "gradebook_column", "in", "self", ".", "get_gradebook...
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`` raise: NullArgument - ``gradebook_ids`` is ``null`` raise: ...
[ "Gets", "the", "list", "of", "GradebookColumn", "Ids", "corresponding", "to", "a", "list", "of", "Gradebooks", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3882-L3899
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebook_columns_by_gradebooks
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
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 ...
[ "def", "get_gradebook_columns_by_gradebooks", "(", "self", ",", "gradebook_ids", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_resources_by_bins", "gradebook_column_list", "=", "[", "]", "for", "gradebook_id", "in", "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 columns raise: NullArgument - ``gradebook_ids`` is ``nu...
[ "Gets", "the", "list", "of", "gradebook", "columns", "corresponding", "to", "a", "list", "of", "Gradebooks", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3902-L3921
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebook_ids_by_gradebook_column
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
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`` ...
[ "def", "get_gradebook_ids_by_gradebook_column", "(", "self", ",", "gradebook_column_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_bin_ids_by_resource", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", ...
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`` raise: NotFound - ``gradebook_column_id`` is not found raise: NullArg...
[ "Gets", "the", "list", "of", "Gradebook", "Ids", "mapped", "to", "a", "GradebookColumn", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3924-L3946
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookSession.get_gradebooks_by_gradebook_column
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
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...
[ "def", "get_gradebooks_by_gradebook_column", "(", "self", ",", "gradebook_column_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinSession.get_bins_by_resource", "mgr", "=", "self", ".", "_get_provider_manager", "(", "'GRADING'", ",", "local", "=", ...
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 raise: NotFound - ``gradebook_column_id`` is not found raise: NullArgume...
[ "Gets", "the", "list", "of", "Gradebooks", "mapped", "to", "a", "GradebookColumn", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L3949-L3967
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookAssignmentSession.assign_gradebook_column_to_gradebook
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
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 ...
[ "def", "assign_gradebook_column_to_gradebook", "(", "self", ",", "gradebook_column_id", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinAssignmentSession.assign_resource_to_bin", "mgr", "=", "self", ".", "_get_provider_manager", "(", ...
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 ``Gradebook`` raise: AlreadyExists - ``gradebook_column_id`` is already ...
[ "Adds", "an", "existing", "GradebookColumn", "to", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4081-L4104
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookColumnGradebookAssignmentSession.unassign_gradebook_column_from_gradebook
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
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 ...
[ "def", "unassign_gradebook_column_from_gradebook", "(", "self", ",", "gradebook_column_id", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.ResourceBinAssignmentSession.unassign_resource_from_bin", "mgr", "=", "self", ".", "_get_provider_manager", ...
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 ``Gradebook`` raise: NotFound - ``gradebook_column_id`` or ``gradebook_id`` ...
[ "Removes", "a", "GradebookColumn", "from", "a", "Gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4107-L4129
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookAdminSession.can_create_gradebook_with_record_types
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
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 ...
[ "def", "can_create_gradebook_with_record_types", "(", "self", ",", "gradebook_record_types", ")", ":", "# Implemented from template for", "# osid.resource.BinAdminSession.can_create_bin_with_record_types", "# NOTE: It is expected that real authentication hints will be", "# handled in a service...
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 record(s) are required for creating a specific ``Gradebook``. Providing an ...
[ "Tests", "if", "this", "user", "can", "create", "a", "single", "Gradebook", "using", "the", "desired", "record", "types", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4478-L4501
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookAdminSession.update_gradebook
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
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 ...
[ "def", "update_gradebook", "(", "self", ",", "gradebook_form", ")", ":", "# Implemented from template for", "# osid.resource.BinAdminSession.update_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", "...
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 raise: InvalidArgument - the form contains an inval...
[ "Updates", "an", "existing", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4644-L4683
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookAdminSession.alias_gradebook
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
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...
[ "def", "alias_gradebook", "(", "self", ",", "gradebook_id", ",", "alias_id", ")", ":", "# Implemented from template for", "# osid.resource.BinLookupSession.alias_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_cat...
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 to another gradebook, it is reassigned to the given g...
[ "Adds", "an", "Id", "to", "a", "Gradebook", "for", "the", "purpose", "of", "creating", "compatibility", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4756-L4779
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_root_gradebook_ids
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
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...
[ "def", "get_root_gradebook_ids", "(", "self", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_root_bin_ids", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ".", "get_root_cata...
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 method must be implemented.*
[ "Gets", "the", "root", "gradebook", "Ids", "in", "this", "hierarchy", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4914-L4927
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_root_gradebooks
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
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...
[ "def", "get_root_gradebooks", "(", "self", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_root_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ".", "get_root_catalogs",...
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 method is must be implemented.*
[ "Gets", "the", "root", "gradebooks", "in", "this", "gradebook", "hierarchy", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4931-L4946
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.has_parent_gradebooks
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
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...
[ "def", "has_parent_gradebooks", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.has_parent_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ...
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`` is not found raise: NullArgument - ``gradebook_id`...
[ "Tests", "if", "the", "Gradebook", "has", "any", "parents", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4951-L4968
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.is_parent_of_gradebook
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
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...
[ "def", "is_parent_of_gradebook", "(", "self", ",", "id_", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_parent_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_...
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 ``gradebook_id,`` ``false`` otherwise raise: NotFound - ``gr...
[ "Tests", "if", "an", "Id", "is", "a", "direct", "parent", "of", "a", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4971-L4990
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_parent_gradebook_ids
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
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...
[ "def", "get_parent_gradebook_ids", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_parent_bin_ids", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_sess...
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: NullArgument - ``gradebook_id`` is ``null`` raise:...
[ "Gets", "the", "parent", "Ids", "of", "the", "given", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L4993-L5009
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_parent_gradebooks
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
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 ...
[ "def", "get_parent_gradebooks", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_parent_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ...
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 raise: NullArgument - ``gradebook_id`` is ``null`` ...
[ "Gets", "the", "parents", "of", "the", "given", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5012-L5032
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.is_ancestor_of_gradebook
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
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...
[ "def", "is_ancestor_of_gradebook", "(", "self", ",", "id_", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_ancestor_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", ...
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 ``gradebook_id,`` ``false`` otherwise raise: NotFound - ``gra...
[ "Tests", "if", "an", "Id", "is", "an", "ancestor", "of", "a", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5035-L5054
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.has_child_gradebooks
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
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``...
[ "def", "has_child_gradebooks", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.has_child_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ...
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`` is not found raise: NullArgument - ``gradebook_...
[ "Tests", "if", "a", "gradebook", "has", "any", "children", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5057-L5074
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.is_child_of_gradebook
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
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_...
[ "def", "is_child_of_gradebook", "(", "self", ",", "id_", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_child_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_ca...
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_id,`` ``false`` otherwise raise: NotFound - ``gradebo...
[ "Tests", "if", "a", "gradebook", "is", "a", "direct", "child", "of", "another", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5077-L5096
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_child_gradebook_ids
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
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...
[ "def", "get_child_gradebook_ids", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_child_bin_ids", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_sessio...
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: NullArgument - ``gradebook_id`` is ``null`` raise: OperationFa...
[ "Gets", "the", "child", "Ids", "of", "the", "given", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5099-L5115
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_child_gradebooks
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
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 ...
[ "def", "get_child_gradebooks", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_child_bins", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_session", ...
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 raise: NullArgument - ``gradebook_id`` is ``null`` ...
[ "Gets", "the", "children", "of", "the", "given", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5118-L5138
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.is_descendant_of_gradebook
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
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...
[ "def", "is_descendant_of_gradebook", "(", "self", ",", "id_", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.is_descendant_of_bin", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", "...
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 the ``gradebook_id,`` ``false`` otherwise raise: NotFound - `...
[ "Tests", "if", "an", "Id", "is", "a", "descendant", "of", "a", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5141-L5160
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchySession.get_gradebook_nodes
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
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...
[ "def", "get_gradebook_nodes", "(", "self", ",", "gradebook_id", ",", "ancestor_levels", ",", "descendant_levels", ",", "include_siblings", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchySession.get_bin_nodes", "return", "objects", ".", "GradebookNode"...
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 ancestor levels to include. A value of 0 returns no parents in the node. arg: descendant_l...
[ "Gets", "a", "portion", "of", "the", "hierarchy", "for", "the", "given", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5199-L5226
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchyDesignSession.add_root_gradebook
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
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...
[ "def", "add_root_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.add_root_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_catalog_s...
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`` is ``null`` raise: OperationFailed - unable...
[ "Adds", "a", "root", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5311-L5327
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchyDesignSession.remove_root_gradebook
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
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...
[ "def", "remove_root_gradebook", "(", "self", ",", "gradebook_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.remove_root_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self", ".", "_cat...
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 complete request raise: PermissionDenied - authorizat...
[ "Removes", "a", "root", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5330-L5345
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchyDesignSession.add_child_gradebook
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
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 ...
[ "def", "add_child_gradebook", "(", "self", ",", "gradebook_id", ",", "child_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.add_child_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", "self...
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 ``child_id`` raise: NotFound - ``gradebook_id`` or ``chil...
[ "Adds", "a", "child", "to", "a", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5348-L5367
mitsei/dlkit
dlkit/json_/grading/sessions.py
GradebookHierarchyDesignSession.remove_child_gradebook
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
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`` ...
[ "def", "remove_child_gradebook", "(", "self", ",", "gradebook_id", ",", "child_id", ")", ":", "# Implemented from template for", "# osid.resource.BinHierarchyDesignSession.remove_child_bin_template", "if", "self", ".", "_catalog_session", "is", "not", "None", ":", "return", ...
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`` raise: NullArgument - ``gradebook_id`` or ``child_id`` is ...
[ "Removes", "a", "child", "from", "a", "gradebook", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/json_/grading/sessions.py#L5370-L5387
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_id
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
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...
[ "def", "get_id", "(", "self", ")", ":", "waypoint_index", "=", "0", "if", "'waypointIndex'", "in", "self", ".", "my_osid_object", ".", "_my_map", ":", "waypoint_index", "=", "self", ".", "my_osid_object", ".", "_my_map", "[", "'waypointIndex'", "]", "# NOTE th...
override get_id to generate our "magic" id that encodes scaffolding information
[ "override", "get_id", "to", "generate", "our", "magic", "id", "that", "encodes", "scaffolding", "information" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L63-L86
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.initialize
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
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...
[ "def", "initialize", "(", "self", ",", "magic_identifier", ",", "assessment_section", ")", ":", "arg_map", "=", "json", ".", "loads", "(", "unquote", "(", "magic_identifier", ")", ".", "split", "(", "'?'", ")", "[", "-", "1", "]", ",", "object_pairs_hook",...
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_id = the Objective Id to for which to select an item waypo...
[ "This", "method", "is", "to", "be", "called", "by", "a", "magic", "AssessmentPart", "lookup", "session", "." ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L91-L123
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_parts
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
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 ...
[ "def", "get_parts", "(", "self", ",", "parts", "=", "None", ",", "reference_level", "=", "0", ")", ":", "if", "parts", "is", "None", ":", "parts", "=", "list", "(", ")", "new_reference_level", "=", "reference_level", "else", ":", "self", ".", "_level_in_...
Recursively returns a depth-first list of all known magic parts
[ "Recursively", "returns", "a", "depth", "-", "first", "list", "of", "all", "known", "magic", "parts" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L125-L150
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.load_item_for_objective
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
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...
[ "def", "load_item_for_objective", "(", "self", ")", ":", "mgr", "=", "self", ".", "my_osid_object", ".", "_get_provider_manager", "(", "'ASSESSMENT'", ",", "local", "=", "True", ")", "if", "self", ".", "my_osid_object", ".", "_my_map", "[", "'itemBankId'", "]"...
if this is the first time for this magic part, find an LO linked item
[ "if", "this", "is", "the", "first", "time", "for", "this", "magic", "part", "find", "an", "LO", "linked", "item" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L152-L202
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.has_magic_children
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
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._...
[ "def", "has_magic_children", "(", "self", ")", ":", "if", "self", ".", "_child_parts", "is", "not", "None", ":", "# generate_children has already been called", "return", "bool", "(", "self", ".", "_child_parts", ")", "if", "self", ".", "_assessment_section", "is",...
checks if child parts are currently available for this part
[ "checks", "if", "child", "parts", "are", "currently", "available", "for", "this", "part" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L204-L218
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_child_ids
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
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()) ...
[ "def", "get_child_ids", "(", "self", ")", ":", "if", "self", ".", "has_magic_children", "(", ")", ":", "if", "self", ".", "_child_parts", "is", "None", ":", "self", ".", "generate_children", "(", ")", "child_ids", "=", "list", "(", ")", "for", "part", ...
gets the ids for the child parts
[ "gets", "the", "ids", "for", "the", "child", "parts" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L341-L352
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_children
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
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()
[ "def", "get_children", "(", "self", ")", ":", "if", "self", ".", "has_magic_children", "(", ")", ":", "if", "self", ".", "_child_parts", "is", "None", ":", "self", ".", "generate_children", "(", ")", "return", "self", ".", "_child_parts", "raise", "Illegal...
return the current child parts of this assessment part
[ "return", "the", "current", "child", "parts", "of", "this", "assessment", "part" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L354-L360
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_item_ids
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
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...
[ "def", "get_item_ids", "(", "self", ")", ":", "if", "self", ".", "has_item_ids", "(", ")", ":", "return", "IdList", "(", "self", ".", "my_osid_object", ".", "_my_map", "[", "'itemIds'", "]", ",", "runtime", "=", "self", ".", "my_osid_object", ".", "_runt...
get item ids associated with this assessment part
[ "get", "item", "ids", "associated", "with", "this", "assessment", "part" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L366-L372
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_scaffold_objective_ids
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
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)
[ "def", "get_scaffold_objective_ids", "(", "self", ")", ":", "section", "=", "self", ".", "_assessment_section", "item_id", "=", "self", ".", "get_my_item_id_from_section", "(", "section", ")", "return", "section", ".", "get_confused_learning_objective_ids", "(", "item...
Assumes that a scaffold objective id is available
[ "Assumes", "that", "a", "scaffold", "objective", "id", "is", "available" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L392-L396
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.get_my_item_id_from_section
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
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...
[ "def", "get_my_item_id_from_section", "(", "self", ",", "section", ")", ":", "for", "question_map", "in", "section", ".", "_my_map", "[", "'questions'", "]", ":", "if", "question_map", "[", "'assessmentPartId'", "]", "==", "str", "(", "self", ".", "get_id", ...
returns the first item associated with this magic Part Id in the Section
[ "returns", "the", "first", "item", "associated", "with", "this", "magic", "Part", "Id", "in", "the", "Section" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L398-L403
mitsei/dlkit
dlkit/records/adaptive/magic_parts/assessment_part_records.py
ScaffoldDownAssessmentPartRecord.delete
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
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', ...
[ "def", "delete", "(", "self", ")", ":", "magic_identifier", "=", "unquote", "(", "self", ".", "get_id", "(", ")", ".", "identifier", ")", "orig_identifier", "=", "magic_identifier", ".", "split", "(", "'?'", ")", "[", "0", "]", "collection", "=", "JSONCl...
need this because the JSONClientValidated cannot deal with the magic identifier
[ "need", "this", "because", "the", "JSONClientValidated", "cannot", "deal", "with", "the", "magic", "identifier" ]
train
https://github.com/mitsei/dlkit/blob/445f968a175d61c8d92c0f617a3c17dc1dc7c584/dlkit/records/adaptive/magic_parts/assessment_part_records.py#L405-L412