bottle-cork
bottle-cork copied to clipboard
Default initialisation is broken
The following will fail because the initialisation doesn't add the "user" role.
aaa = Cork(config['auth_dir'], initialize=True) aaa.register(...)
Code also cannot add the "user" role using aaa.create_role() because that call requires an authenticated user with a role level 100. Such a role obviously doesn't exist at this point, and no user exists because I can't register (or create_user.)
Check this file:
https://raw.github.com/FedericoCeratto/bottle-cork/master/examples/recreate_example_conf.py