| 94 | | defaults = {'user_class':self.model.User, |
|---|
| 95 | | 'group_class':self.model.Group, |
|---|
| 96 | | 'permission_class':self.model.Permission, |
|---|
| 97 | | 'users_table':'tg_user', |
|---|
| 98 | | 'groups_table':'tg_group', |
|---|
| 99 | | 'permissions_table':'tg_permission', |
|---|
| 100 | | 'password_encryption_method':'sha1', |
|---|
| 101 | | 'form_plugin': None |
|---|
| 102 | | } |
|---|
| 103 | | if config.get('sa_auth'): |
|---|
| 104 | | config['sa_auth'] = defaults.update(config['sa_auth']) |
|---|
| 105 | | if not config['sa_auth']: |
|---|
| 106 | | config['sa_auth'] = defaults |
|---|
| | 99 | defaults = {'users_table':'tg_user', |
|---|
| | 100 | 'groups_table':'tg_group', |
|---|
| | 101 | 'permissions_table':'tg_permission', |
|---|
| | 102 | 'password_encryption_method':'sha1', |
|---|
| | 103 | 'form_plugin': None |
|---|
| | 104 | } |
|---|
| | 105 | # The developer must have defined a 'sa_auth' section, because |
|---|
| | 106 | # values such as the User, Group or Permission classes must be |
|---|
| | 107 | # explicitly defined. |
|---|
| | 108 | config['sa_auth'] = defaults.update(config['sa_auth']) |
|---|