示例#1
0
    def create_account_manager(self):
        # Hack to use the accounts stuff from Infogami
        infobase_config.user_root = "/people"

        store = web.storage(store=self.store)
        site = web.storage(store=store, save_many=self.save_many)
        return account.AccountManager(site, config.infobase['secret_key'])
示例#2
0
    def __init__(self, _infobase, sitename, store, secret_key):
        self._infobase = _infobase
        self.sitename = sitename
        self.store = store
        self.cache = cache.Cache()
        self.store.set_cache(self.cache)
        self.account_manager = account.AccountManager(self, secret_key)

        self._triggers = {}
        store.store.set_listener(self._log_store_action)
        store.seq.set_listener(self._log_store_action)