mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-12 02:22:56 +08:00
cc3c4462a0
* Initial commit * Fix cookies * Continue work * Login error msg * Reimplement Basic auth * Some improvements * Reimplement Basic auth * Some improvements * Change validation key for cookies * Some Changes * Add client side control of password when changing username * Some changes
31 lines
752 B
Python
31 lines
752 B
Python
# Cork - Authentication module for the Bottle web framework
|
|
# Copyright (C) 2013 Federico Ceratto and others, see AUTHORS file.
|
|
# Released under LGPLv3+ license, see LICENSE.txt
|
|
|
|
"""
|
|
.. module:: backend.py
|
|
:synopsis: Base Backend.
|
|
"""
|
|
|
|
class BackendIOException(Exception):
|
|
"""Generic Backend I/O Exception"""
|
|
pass
|
|
|
|
def ni(*args, **kwargs):
|
|
raise NotImplementedError
|
|
|
|
class Backend(object):
|
|
"""Base Backend class - to be subclassed by real backends."""
|
|
save_users = ni
|
|
save_roles = ni
|
|
save_pending_registrations = ni
|
|
|
|
class Table(object):
|
|
"""Base Table class - to be subclassed by real backends."""
|
|
__len__ = ni
|
|
__contains__ = ni
|
|
__setitem__ = ni
|
|
__getitem__ = ni
|
|
__iter__ = ni
|
|
iteritems = ni
|
|
|