frgomes/kotti_accounts — pull request #1 by tiberiuichim (2014-01-15 15:12:58+00:00)
Title: Replace stub_factory with stub_principals in Accounts.iterkeys()/search(...

...)

This is the code where I've encountered the problem:

>>> from kotti.security import get_principals, Principal
>>> p = Principal('p')
>>> DBSession.add(p)
>>> principals = get_principals()
>>> print principals.keys()