Revision 8a8578c5 snf-astakos-app/astakos/im/notification_xctx.py
b/snf-astakos-app/astakos/im/notification_xctx.py | ||
---|---|---|
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 |
from synnefo.lib.db.xctx import TransactionContext, TransactionHandler |
|
34 |
from synnefo.lib.db.xctx import TransactionContext |
|
35 |
from astakos.im.retry_xctx import RetryTransactionHandler |
|
35 | 36 |
from astakos.im.notifications import Notification |
36 | 37 |
|
37 | 38 |
# USAGE |
... | ... | |
54 | 55 |
# return http response |
55 | 56 |
|
56 | 57 |
def notification_transaction_context(**kwargs): |
57 |
return TransactionHandler(ctx=NotificationTransactionContext, **kwargs) |
|
58 |
return RetryTransactionHandler(ctx=NotificationTransactionContext, **kwargs)
|
|
58 | 59 |
|
59 | 60 |
|
60 | 61 |
class NotificationTransactionContext(TransactionContext): |
Also available in: Unified diff