anki/aqt
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 allow user to override scaling 2017-11-27 11:01:15 +10:00
about.py use callback when closing windows 2017-08-16 12:48:15 +10:00
addcards.py use callback when closing windows 2017-08-16 12:48:15 +10:00
addons.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
browser.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
clayout.py night mode 2017-12-04 12:20:56 +10:00
customstudy.py schedtest changes, squashed from local branch 2018-01-14 12:16:53 +10:00
deckbrowser.py Allow to better translate "in x minutes" 2017-11-30 20:03:51 +01:00
deckchooser.py fix ampersands appearing in deck names 2017-07-28 17:40:26 +10:00
deckconf.py remove images and move away from qt resources 2017-08-11 20:59:43 +10:00
downloader.py fix error on add-on download 2017-08-26 19:55:39 +10:00
dyndeckconf.py make preview delay customizable 2018-01-20 15:26:11 +10:00
editcurrent.py use callback when closing windows 2017-08-16 12:48:15 +10:00
editor.py preserve newlines when pasting plain text 2018-01-26 19:18:24 +10:00
errors.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
exporting.py use separate .colpkg extension for collection exports 2017-09-10 16:58:55 +10:00
fields.py show field numbers for easier positioning 2017-10-05 14:52:05 +10:00
importing.py enforce schema version; allow importing+exporting v2 scheduler 2018-01-29 14:12:04 +10:00
main.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
mediasrv.py Bind mediaserver on 127.0.0.1 instead of localhost 2017-12-24 23:10:07 -08:00
modelchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
models.py drop experimental prewrap mode 2017-10-25 19:18:00 +10:00
overview.py fix unbury op w/ v1 scheduler 2018-01-26 19:05:08 +10:00
preferences.py fix opening prefs screen in V1 sched 2018-01-22 11:24:45 +10:00
profiles.py check prefs21.db integrity 2018-01-14 17:47:21 +10:00
progress.py work around progress dlg hang at startup on osx 2018-01-14 19:29:56 +10:00
qt.py refuse to run on qt 5.10 2017-12-18 14:50:14 +10:00
reviewer.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
sound.py work around pops in recording start 2017-12-05 11:07:52 +10:00
stats.py default to desktop in getSaveFile; don't force desktop in stats 2017-09-10 16:42:29 +10:00
studydeck.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
sync.py log traceback in case of sync error 2018-01-20 11:24:01 +10:00
tagedit.py Space-separate inserted tags 2017-08-30 14:52:58 +02:00
taglimit.py ctrl+d to deselect all in tag picker 2017-10-16 15:31:29 +10:00
toolbar.py remove border on bottom toolbar; fix hacky spacing of top elements 2017-08-10 19:17:28 +10:00
update.py use requests for http; add progress info back 2017-01-08 19:06:32 +10:00
utils.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
webview.py remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00