# Path: playa/ext/zodb.py
# class ZODB(IterableUserDict):
# class Factory(object):
# class Model(Persistent):
#     def __init__(self, app=None):
#     def init(self, cb):
#     def db(self):
#     def connection(self):
#     def connection(self, new):
#     def root(self):
#     def data(self):
#     def init_app(self, app):
#         def open_db():
#         def close_db(response):
#     def transaction(self, db=None):
#     def __call__(self):
#     def __init__(self, callable, *args, **kwargs):
#     def __call__(self):
#     def __init__(self, **kwargs):
#     def __repr__(self):
# UUID4 = Factory(uuid4)


from BTrees.OOBTree import OOBTree
from playa.ext.zodb import Model, Timestamp, Boolean, \
                           UUID4, List
import bcrypt
import uuid
"""
playa.models
~~~~~~~~~~~~

:copyright: (c) 2011 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""



class Users(OOBTree):
    def new(self, username, password):
        user = User(username=username)
        user.set_password(password)
        self[username] = user
        return user

class User(Model):
    username = None
    password = None

# Path: playa/ext/zodb.py
# class ZODB(IterableUserDict):
# class Factory(object):
# class Model(Persistent):
#     def __init__(self, app=None):
#     def init(self, cb):
#     def db(self):
#     def connection(self):
#     def connection(self, new):
#     def root(self):
#     def data(self):
#     def init_app(self, app):
#         def open_db():
#         def close_db(response):
#     def transaction(self, db=None):
#     def __call__(self):
#     def __init__(self, callable, *args, **kwargs):
#     def __call__(self):
#     def __init__(self, **kwargs):
#     def __repr__(self):
# UUID4 = Factory(uuid4)


# Path: playa/models.py
from BTrees.OOBTree import OOBTree
from playa.ext.zodb import Model, Timestamp, Boolean, \
                           UUID4, List
import bcrypt
import uuid

"""
playa.models
~~~~~~~~~~~~

:copyright: (c) 2011 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""



class Users(OOBTree):
    def new(self, username, password):
        user = User(username=username)
        user.set_password(password)
        self[username] = user
        return user

class User(Model):
    username = None
    password = None

    date_created = Timestamp