# Path: axiom/userbase.py
# class LoginSystem(Item, LoginBase, SubStoreLoginMixin):
#     schemaVersion = 1
#     typeName = 'login_system'
# 
#     loginCount = integer(default=0)
#     failedLogins = integer(default=0)
#     _txCryptContext = inmemory()
# 
# Path: axiom/test/test_userbase.py
# class GarbageProtocolHandler(Item):
#     schemaVersion = 1
#     typeName = 'test_login_garbage'
# 
#     garbage = integer()


from axiom.userbase import LoginSystem
from axiom.test.test_userbase import GarbageProtocolHandler
from axiom.test.historic.stubloader import saveStub


def createDatabase(s):
    ls = LoginSystem(store=s)
    ls.installOn(s)
    acc = ls.addAccount('test', 'example.com', 'asdf')
    ss = acc.avatars.open()

# Path: axiom/userbase.py
# class LoginSystem(Item, LoginBase, SubStoreLoginMixin):
#     schemaVersion = 1
#     typeName = 'login_system'
# 
#     loginCount = integer(default=0)
#     failedLogins = integer(default=0)
#     _txCryptContext = inmemory()
# 
# Path: axiom/test/test_userbase.py
# class GarbageProtocolHandler(Item):
#     schemaVersion = 1
#     typeName = 'test_login_garbage'
# 
#     garbage = integer()


# Path: axiom/test/historic/stub_account1to2.py
from axiom.userbase import LoginSystem
from axiom.test.test_userbase import GarbageProtocolHandler
from axiom.test.historic.stubloader import saveStub



def createDatabase(s):
    ls = LoginSystem(store=s)
    ls.installOn(s)
    acc = ls.addAccount('test', 'example.com', 'asdf')
    ss = acc.avatars.open()

    gph = GarbageProtocolHandler(store=ss, garbage=7)