- refactored resolver code and added asynchronous resolver based on patch by Damien Thebault[1] * Uses libasyncns-python[2]. If it's not available, old nslookup resolver is used) * works for SRV requests only at the moment [1] https://www.lagaule.org/pipermail/gajim-devel/2008-July/000460.html [2] https://code.launchpad.net/libasyncns-python
17 lines
No EOL
434 B
Python
17 lines
No EOL
434 B
Python
# mock notify module
|
|
|
|
notifications = []
|
|
|
|
def notify(event, jid, account, parameters, advanced_notif_num = None):
|
|
notifications.append((event, jid, account, parameters, advanced_notif_num))
|
|
|
|
def get_advanced_notification(event, account, contact):
|
|
return None
|
|
|
|
def get_show_in_roster(event, account, contact, session = None):
|
|
return True
|
|
|
|
def get_show_in_systray(event, account, contact, type_ = None):
|
|
return True
|
|
|
|
# vim: se ts=3: |