mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
07d765209d
Mostly logic of when to send an email
13 lines
284 B
Python
13 lines
284 B
Python
from httppusher import HttpPusher
|
|
from emailpusher import EmailPusher
|
|
|
|
PUSHER_TYPES = {
|
|
'http': HttpPusher,
|
|
'email': EmailPusher,
|
|
}
|
|
|
|
|
|
def create_pusher(hs, pusherdict):
|
|
if pusherdict['kind'] in PUSHER_TYPES:
|
|
return PUSHER_TYPES[pusherdict['kind']](hs, pusherdict)
|