Anki/anki/importing
Damien Elmes 0cce540d83 enforce schema version; allow importing+exporting v2 scheduler
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.

In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.

The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.
2018-01-29 14:12:04 +10:00
..
__init__.py use separate .colpkg extension for collection exports 2017-09-10 16:58:55 +10:00
anki2.py enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
apkg.py enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
base.py Stop inheriting from object 2017-02-07 00:21:33 +02:00
csvfile.py Fix string decode error when importing csv files 2017-12-31 14:01:47 -06:00
mnemo.py accept current and future mnemosyne imports 2017-11-27 10:49:38 +10:00
noteimp.py cgi.escape is deprecated 2017-12-11 16:20:00 +10:00
pauker.py cgi.escape is deprecated 2017-12-11 16:20:00 +10:00
supermemo_xml.py Comparison with None shouldn't use equality 2017-09-10 15:30:22 +02:00