Commit Graph

  • 85c9b85c1f Make _old_client() support alphas/betas flan 2017-11-01 17:43:47 +0100
  • 2dc1f28b04 Move version checks to a separate function, add test flan 2017-11-01 16:41:41 +0100
  • 8195e58e3b Make parts of SyncUserSession more readable flan 2017-11-01 15:36:31 +0100
  • bdcbb9eced Note which commit motivated creation of test_login() flan 2017-11-01 04:35:02 +0100
  • 6617398921 Don't hardcode location of sqldiff flan 2017-11-01 04:06:06 +0100
  • ce3aa4a685 Make DB utils more general flan 2017-11-01 04:04:48 +0100
  • 55bdbfacaa Remove unused lines flan 2017-10-30 19:56:17 +0100
  • 39f3ee110d Make test file names follow a single convention flan 2017-10-30 19:28:29 +0100
  • 765cce3d74 Move hostKey handling to a separate function flan 2017-10-30 19:23:32 +0100
  • ce6433b9ba Add functional tests for authentication flan 2017-10-30 19:16:06 +0100
  • 3792c89ecb Fix authentication flan 2017-10-29 19:29:46 +0100
  • 3f3e2f4df4 Fix inconsistent indentation of README code blocks flan 2017-10-29 04:29:44 +0100
  • bf1bf4de72 Add some context from upstream README flan 2017-10-29 04:21:22 +0100
  • 6154cfde62 Don't leave an empty directory in cwd after running tests flan 2017-10-28 23:40:42 +0200
  • e464592a57 Add gitignore flan 2017-10-28 23:18:18 +0200
  • c805468449 Refactor ankiserverctl.py to delegate database operations to SqliteUserManager and use python3 compatible print calls. Christoph Mack 2016-05-27 21:42:52 +0200
  • c7d7ff3e85 Merge SyncApp's SqliteUserManager and the newly introduced UserManager and group all user managers in user_managers.py. Christoph Mack 2016-05-27 21:33:22 +0200
  • 573aeece81 Add more test helpers and integration tests for SyncApp's media sync feature using WebTest's TestApp. Add test helpers for creating, inspecting and manipulating instances of SyncApp and RestApp. Add subclasses of Anki's RemoteServer and RemoteMediaServer for communicating with the wrapped SyncApp instance under test. Add helpers for monkey patching Anki's MediaManager and DB for easier testing. Add test assets directory. Christoph Mack 2016-02-29 09:56:28 +0100
  • cb574aa0a7 Add test helper classes for creating and managing temporary files, working with anki collections and sqlite dbs. Add class for managing users so users can be added programmatically without using ankiserverctl. Christoph Mack 2016-02-05 22:40:39 +0100
  • 28e950c138 Added unit tests for SimpleUserManager, SqliteUserManagerTest, SimpleSessionManager and SqliteSessionManagerTest. Christoph Mack 2015-10-05 19:41:00 +0200
  • 6e881bfb85 Added unit test for SyncCollectionHandler. Moved CollectionTestBase to a separate file. Christoph Mack 2015-10-05 19:21:38 +0200
  • 99adc658d5 Remove support for legacy modules flan 2017-10-28 20:43:09 +0200
  • 86b63d51b5 Remove superfluous/outdated instructions flan 2017-10-28 20:40:32 +0200
  • 2cb5871ba3 Safer handling of uploaded database files during full sync. Before overwriting its version of a user's collection database file with one uploaded by the client, the server now performs a basic integrity check using SQLite's 'pragma integrity_check'. Christoph Mack 2015-10-08 21:41:04 +0200
  • f3788fc2c8 fix syntax error causing failure in error handler in SyncMediaHandler._remove_media_files() Christoph Mack 2016-08-02 19:34:17 +0200
  • 67830218eb Drop support for Anki <2.0.27 flan 2017-03-05 00:39:06 +0100
  • b0cb424770 Use os.path.join() for path concatenation flan 2017-10-28 19:02:07 +0200
  • ceb931519d Bring back authentication flan 2017-10-28 18:37:37 +0200
  • 48cfa9a029 Remove unused lines flan 2017-10-28 18:14:05 +0200
  • 4a9ee4d40c Rewrite command handling flan 2017-10-28 17:54:58 +0200
  • 91b5a6e052 Remove redundant messages flan 2017-10-28 17:50:38 +0200
  • 098c9dff4a Use user-prefixed data directory by default flan 2017-10-28 17:34:16 +0200
  • 16d8bd9b78 Drop service management from ankisyncctl flan 2017-10-28 17:04:24 +0200
  • bd2c5bdff9 Remove SSL support flan 2017-10-28 05:50:18 +0200
  • c398ccdb89 Apply @ndl's patches jdoe0 2016-11-03 21:44:40 +0700
  • 1678890d3d Add SSL support jdoe0 2016-06-25 23:59:59 +0700
  • e093e3981e Update README.md jdoe0 2016-04-05 23:30:30 +0700
  • e32bceccf3 Not only add, but also remove files when adopting changes to client media files in SyncMediaHandler.uploadChanges(). Count added and removed files as processed and increment media usn accodingly. Refactor SyncMediaHandler.uploadChanges(). Christoph Mack 2016-01-24 13:21:00 +0100
  • 87ee726d25 Define skey once when creating user session, not each time when beginning media sync. Christoph Mack 2016-01-22 23:27:32 +0100
  • 1b1a3d8e22 Define a random skey to return to the client when media syncing begins, so we don't send a null skey value. Christoph Mack 2016-01-22 08:34:10 +0100
  • f03aea67c1 SyncMediaHandler.begin(): return media database usn instead of collection database usn. If the wrong usn is returned, media syncing on the client will not finish with status "noChanges" even if there have been no changes since the last media sync. Christoph Mack 2016-01-19 11:20:37 +0100
  • 3baad9cfac Fix syncing with AnkiDroid jdoe0 2015-11-29 11:53:58 +0700
  • d3eab4266e Update addon code in README.md jdoe0 2015-11-27 12:27:07 +0700
  • dfe62472a1 Update config file jdoe0 2015-11-27 12:25:37 +0700
  • ab40509cb2 Add missing function _execute_handler_method_in_thread() jdoe0 2015-11-27 10:42:38 +0700
  • 8066fba1fe Update for Anki >= 2.0.27 jdoe0 2015-11-19 13:20:41 +0700
  • 40d515234e Update README.md jdoe0 2014-07-22 20:29:02 +0700
  • 07ed4dfb75 ankisyncd.sh: Disable python version check jdoe0 2014-01-18 01:40:43 +0700
  • 8c3a53c3f4 ankisyncd.sh: Look for 'python2' before checking the version of 'python' jdoe0 2014-01-10 19:34:12 +0700
  • 0311e25574 Collection.media.illegal() was renamed to Collection.media.hasIllegal() in Anki 2.0.12. David Snopek 2013-12-31 20:21:38 +0000
  • f210f728ea Updated the bundled Anki 2.0.20 and made some fixes for that version. Fixes #9. David Snopek 2013-12-31 20:06:31 +0000
  • 525652dad0 Renamed config file to ankisyncd.conf jdoe0 2014-01-04 20:06:14 +0700
  • bce42dd297 ankisyncd.sh: Check python version and look for python2 if it's not the default python jdoe0 2014-01-04 19:58:44 +0700
  • 29e8f8177e ankisyncd.sh: Use '/usr/bin/env bash' in shebang for better portability jdoe0 2014-01-04 19:34:58 +0700
  • 42f91cce80 thread.py: Remove unused imports jdoe0 2014-01-04 19:31:29 +0700
  • 8733e5c22a Update README.md jdoe0 2013-12-22 22:01:44 -0600
  • b0f4accdce Looks like the old code missed a 'self.'. Simplified a bit. ospalh 2013-12-16 11:06:05 +0100
  • c0d3b06ea3 Semi-automatically remove trailing whitespace. ospalh 2013-12-16 11:04:58 +0100
  • e12ecedbf0 Update README.md jdoe0 2013-12-07 17:29:30 -0600
  • d23dd0122a Fix initial user creation. Alexander Grüneberg 2013-12-05 17:18:17 -0600
  • 33c0fdcd1f Got ankiserverctl.py working on my system, installing into the system bin/ and working with config files in another directory. David Snopek 2013-11-27 14:46:15 +0000
  • a18d806b06 Update README.md jdoe0 2013-12-06 15:57:15 -0600
  • e1db4aa67f Update README.md jdoe0 2013-10-29 16:48:02 -0500
  • 93ad7c5dfe Added launcher script jdoe0 2013-10-24 04:51:32 -0500
  • 1bee3298d7 Added wrapper script jdoe0 2013-10-24 04:10:54 -0500
  • 1fd9aa5e47 Update README.md jdoe0 2013-10-20 19:03:47 -0500
  • 6805ca9936 Update README.md jdoe0 2013-10-20 18:57:58 -0500
  • 95ef2b9155 Update README.md jdoe0 2013-10-20 01:14:11 -0500
  • b3e823a19a Update README.md jdoe0 2013-10-20 01:07:36 -0500
  • 4e8f16eec8 Updated README jdoe0 2013-10-20 00:36:27 -0500
  • 5fe057961e Changed module name to ankisyncd jdoe0 2013-10-19 00:46:55 -0500
  • f6acc0dafb Renamed AnkiServer folder to src jdoe0 2013-10-13 16:10:52 -0500
  • e72635406f Renamed LICENSE.txt to COPYING jdoe0 2013-10-13 16:10:00 -0500
  • fde985651b Remove dotfiles jdoe0 2013-10-13 16:09:18 -0500
  • bd58e02319 Merge sync_app.py from upstream jdoe0 2013-10-13 15:42:05 -0500
  • 0daf0a7cd9 Added a LICENSE.txt for the GNU Affero GPL. David Snopek 2013-08-06 06:57:03 -0500
  • 64f2f7352a Properly close database connection in DatabaseAuthSyncApp.authenticate() jdoe0 2013-08-14 18:43:43 +0700
  • e0e46904bb Updated README.md jdoe0 2013-08-14 18:26:30 +0700
  • d573bf6b42 Remove things not needed by sync_app jdoe0 2013-08-14 18:22:18 +0700
  • fd58fcd9ec Updated README.md jdoe0 2013-08-02 11:00:03 +0700
  • 45d36a7a97 Moved the implementation of sqlite-based authentication to DatabaseAuthSyncApp jdoe0 2013-08-02 10:57:55 +0700
  • 942c9b34dc Fixed bad indentation jdoe0 2013-08-02 10:19:39 +0700
  • a99f4f6176 Merge branch 'master' of https://github.com/dsnopek/anki-sync-server jdoe0 2013-08-02 10:17:59 +0700
  • 04fb2df995 Correctly store 'time' in the revlog, when 'timerStarted' is passed to 'answer_card'. David Snopek 2013-08-01 21:45:16 +0100
  • c8501cf8aa Merge https://github.com/dsnopek/anki-sync-server jdoe0 2013-08-02 01:35:27 +0700
  • f4cfde621e Put authentication database path in ini file jdoe0 2013-08-02 01:30:04 +0700
  • f17ccd954c Updated README.md jdoe0 2013-08-02 01:06:51 +0700
  • 654240abca Added basic authentication support jdoe0 2013-08-02 00:07:49 +0700
  • 4e2c697abc Fix for a JSON encoding "quirk" in PHP David Snopek 2013-08-01 17:29:19 +0100
  • 0e1322e1cd Allow pulling a section of the revlog. David Snopek 2013-08-01 17:04:14 +0100
  • 7dcde6ac7a Oops! Fixed bug when preloading a card from 'latest_cards'. David Snopek 2013-07-31 20:31:48 +0100
  • 3cc7558936 Added a way to get the latest cards. David Snopek 2013-07-31 20:24:59 +0100
  • 549b6d3e09 Added a way to get recently updated notes. David Snopek 2013-07-31 20:17:26 +0100
  • 5526956698 Added a way to get the latest revlog entry for a card. David Snopek 2013-07-31 20:01:35 +0100
  • 7f3ffc00f6 Fixed updating existing notes. David Snopek 2013-07-31 19:26:38 +0100
  • 294afba2ac Added a quick way to get a list of all collections. David Snopek 2013-07-31 18:17:58 +0100
  • 02ea97f6d9 Fixed issue with non-existant member. David Snopek 2013-07-31 16:59:13 +0100
  • d6c1ae164c Implemented a way to re-import from an .apkg file and update the existing notes. David Snopek 2013-07-30 17:10:49 +0100
  • 442037c211 Implemented 'cards_recent_ease' to pull a list of the most recent answers to a list of cards. David Snopek 2013-07-27 13:41:20 +0100
  • e8b9204b7b Include all browser prefixes for CSS3 'transform'. David Snopek 2013-07-26 20:52:36 +0100