| Conditions | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 8 | def audit_manager(request): |
||
| 9 | """ |
||
| 10 | Method to initialize and return the audit manager. |
||
| 11 | |||
| 12 | The request must contain a method `request.db` to retrieve the current session. |
||
| 13 | |||
| 14 | :param request: `pyramid.request.Request` |
||
| 15 | :return: the audit manager |
||
| 16 | """ |
||
| 17 | session = request.db |
||
| 18 | return AuditManager(session) |
||
| 19 | |||
| 28 |