Commit Graph

23 Commits

Author SHA1 Message Date
Damien Elmes
a1ca03ee17 allow urllib2 to be passed unicode data to send (#923) 2013-07-03 04:48:52 +09:00
Damien Elmes
e7ec4edf92 fix sync error message bug 2013-06-14 13:06:56 +09:00
Damien Elmes
be78c3f9e3 better msg when media sanity fails 2013-05-30 10:54:55 +09:00
Damien Elmes
ff8b58de21 include full traceback on sync error 2013-05-29 09:32:49 +09:00
Damien Elmes
273cb74e3d separate messages for 50x errors 2013-05-17 13:58:38 +09:00
Damien Elmes
ab198c46be unify pre-check, sanity-check and upload error messages 2013-05-14 15:41:18 +09:00
Damien Elmes
79d4451299 move full sync into preferences, and remove maintenance menu 2013-05-14 15:27:40 +09:00
Damien Elmes
e913c75fd7 perform basic check prior to syncing 2013-05-14 15:10:58 +09:00
Damien Elmes
d2535fd6cb run basic integrity check prior to full up 2013-05-13 19:36:09 +09:00
Damien Elmes
c8fd2e2f87 future imports must go at top 2013-05-07 18:30:17 +09:00
Damien Elmes
13cbade4a3 use future division in those aqt files too 2013-05-07 15:27:35 +09:00
Mike Blume
dcf097b55f use futuristic division
Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
2013-05-05 11:09:16 -07:00
Damien Elmes
e64d825730 fix some sync issues
- better error message when upload fails
- don't show success message on error
- fix 'unable to find server' accidentally being catchall
2013-03-01 01:36:14 +09:00
ospalh
6a93767f80 The longer full sync explanation was missing a backslash.
The "automatically" appeared on a line by itself.
2013-02-27 11:36:15 +01:00
Damien Elmes
ab5d521512 tweak sync conflict msg 2013-02-27 14:07:11 +09:00
Damien Elmes
45ae2cbbfb another firewall error 2013-02-12 02:06:03 +09:00
Damien Elmes
8ce6bd8b79 catch another firewall error 2013-02-07 19:58:17 +09:00
Damien Elmes
073f129ab8 fix media sanity fail being identified as normal sanity error 2013-01-29 09:05:55 +09:00
Damien Elmes
8d66578d43 move sanity check to server and automatically force full sync
- server will log mismatches so we don't require people to post on the forums
  anymore or manually force a full sync
- if we find problems like missing notes, report that in the sanity check so
  the server can keep track of problems
- when the server detects a conflict it can immediately abort the sync, so a
  subsequent sync will no longer report a conflict
2013-01-18 09:17:12 +09:00
Damien Elmes
ce2581269b make sure we always turn error into unicode (#488) 2013-01-15 07:28:48 +09:00
Damien Elmes
c6adf1dda8 set auth dialog to window modal 2013-01-08 10:36:04 +09:00
Damien Elmes
b2457811a2 optimize imports 2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00