levels
wdadaptivepy service for Adaptive's Levels.
LevelService
Create, retrieve, and modify Adaptive Levels.
Attributes:
Name | Type | Description |
---|---|---|
Level |
wdadaptivepylevel |
Source code in src/wdadaptivepy/services/levels.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
__init__(xml_api)
Initialize LevelService.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xml_api
|
XMLApi
|
wdadaptivepy XMLApi |
required |
Source code in src/wdadaptivepy/services/levels.py
20 21 22 23 24 25 26 27 28 |
|
from_dict(data)
Convert Python Dictionary to MetadataList of Levels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
Sequence[dict] | dict
|
Python Dictionary |
required |
Returns:
Type | Description |
---|---|
MetadataList[Level]
|
MetadataList of Levels |
Source code in src/wdadaptivepy/services/levels.py
91 92 93 94 95 96 97 98 99 100 101 |
|
from_json(data)
Convert JSON to MetadataList of Levels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
str
|
JSON string |
required |
Returns:
Type | Description |
---|---|
MetadataList[Level]
|
MetadataList of Levels |
Source code in src/wdadaptivepy/services/levels.py
79 80 81 82 83 84 85 86 87 88 89 |
|
get_all(*, display_name_enabled=True)
Retrieve all Levels from Adaptive.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
display_name_enabled
|
bool
|
Adaptive Display Name Enabled |
True
|
Returns:
Type | Description |
---|---|
MetadataList[Level]
|
adaptive Levels |
Source code in src/wdadaptivepy/services/levels.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
preview_update(levels, *, hide_password=True)
Generate Level update XML API call for review.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
levels
|
Sequence[Level]
|
wdadaptivepy Levels to update |
required |
hide_password
|
bool
|
Prevent password from being displayed |
True
|
Returns:
Type | Description |
---|---|
Element
|
XML API body |
Source code in src/wdadaptivepy/services/levels.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|