passerine.db.fixture¶
Note
This page is automatically generated. If you don’t see anything, this means
this sub-module is not meant to be used. If you really want to know what it
is, please check out the source code at passerine/db/fixture.py
.
Author: | Juti Noppornpitak |
---|
Warning
Not in used.
-
class
passerine.db.fixture.
Fixture
(repository)¶ Foundation of the council
Note
this must be used at most once.
Warning
this class is not tested.
-
set
(kind, fixtures)¶ Define the fixtures.
Parameters: - kind (unicode|str) – a string represent the kind
- fixtures (dict) – the data dictionary keyed by the alias
fixture = Fixture() fixture.set( 'council.security.model.Provider', { 'ldap': { 'name': 'ldap' } } ) fixture.set( 'council.user.model.User', { 'admin': { 'name': 'Juti Noppornpitak' } } ) fixture.set( 'council.security.model.Credential', { 'shiroyuki': { 'login': 'admin', 'user': 'proxy/council.user.model.User/admin', 'provider': 'proxy/council.security.model.Provider/ldap' } } )
-