comicbox.readinglists.formats.json_cbl.transform ¶
Convert json-cbl 1.0 reading lists to and from the model.
json-cbl requires a series start year and a full cover date on every issue, both ids of a database pair, and a UUID for the file and for each relationship. An entry that lacks a start year or a cover year cannot be written, and no year is invented to keep it: lost_fields names it.
JsonCblTransform ¶
Bases: ReadingListTransform
json-cbl 1.0.
Source code in comicbox/readinglists/formats/json_cbl/transform.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | |
from_reading_list(reading_list) ¶
Write a json-cbl document of the entries it can carry.
Source code in comicbox/readinglists/formats/json_cbl/transform.py
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |
to_reading_list(data) ¶
Read a json-cbl document. It is ordered by definition.
Source code in comicbox/readinglists/formats/json_cbl/transform.py
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | |
unwritable(reading_list) ¶
List the entries without a series, issue, start year or year.
Source code in comicbox/readinglists/formats/json_cbl/transform.py
448 449 450 451 452 453 454 | |