Remove unused lines
This commit is contained in:
parent
4a9ee4d40c
commit
48cfa9a029
@ -1,15 +1,2 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, "/usr/share/anki")
|
sys.path.insert(0, "/usr/share/anki")
|
||||||
|
|
||||||
#def server_runner(app, global_conf, **kw):
|
|
||||||
# """ Special version of paste.httpserver.server_runner which calls
|
|
||||||
# AnkiServer.thread.shutdown() on server exit."""
|
|
||||||
#
|
|
||||||
# from paste.httpserver import server_runner as paste_server_runner
|
|
||||||
# from AnkiServer.thread import shutdown
|
|
||||||
# try:
|
|
||||||
# paste_server_runner(app, global_conf, **kw)
|
|
||||||
# finally:
|
|
||||||
# shutdown()
|
|
||||||
#
|
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
|
|
||||||
import anki
|
import anki
|
||||||
import anki.storage
|
import anki.storage
|
||||||
|
|
||||||
import os, errno
|
import os, errno
|
||||||
|
|
||||||
__all__ = ['CollectionWrapper', 'CollectionManager']
|
|
||||||
|
|
||||||
class CollectionWrapper(object):
|
class CollectionWrapper(object):
|
||||||
"""A simple wrapper around an anki.storage.Collection object.
|
"""A simple wrapper around an anki.storage.Collection object.
|
||||||
|
|
||||||
|
|||||||
@ -730,12 +730,7 @@ class SqliteUserManager(SimpleUserManager):
|
|||||||
|
|
||||||
return (db_ret != None and hashobj.hexdigest()+salt == db_hash)
|
return (db_ret != None and hashobj.hexdigest()+salt == db_hash)
|
||||||
|
|
||||||
# Our entry point
|
|
||||||
def make_app(global_conf, **local_conf):
|
def make_app(global_conf, **local_conf):
|
||||||
if local_conf.has_key('session_db_path'):
|
|
||||||
local_conf['session_manager'] = SqliteSessionManager(local_conf['session_db_path'])
|
|
||||||
if local_conf.has_key('auth_db_path'):
|
|
||||||
local_conf['user_manager'] = SqliteUserManager(local_conf['auth_db_path'])
|
|
||||||
return SyncApp(**local_conf)
|
return SyncApp(**local_conf)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from ankisyncd.collection import CollectionWrapper, CollectionManager
|
from ankisyncd.collection import CollectionWrapper, CollectionManager
|
||||||
@ -8,8 +7,6 @@ from Queue import Queue
|
|||||||
|
|
||||||
import time, logging
|
import time, logging
|
||||||
|
|
||||||
__all__ = ['ThreadingCollectionWrapper', 'ThreadingCollectionManager']
|
|
||||||
|
|
||||||
class ThreadingCollectionWrapper(object):
|
class ThreadingCollectionWrapper(object):
|
||||||
"""Provides the same interface as CollectionWrapper, but it creates a new Thread to
|
"""Provides the same interface as CollectionWrapper, but it creates a new Thread to
|
||||||
interact with the collection."""
|
interact with the collection."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user