[birthday_reminder] Add license header

This commit is contained in:
Philipp Hörist
2018-11-20 16:22:53 +01:00
parent 358302fed3
commit 7e7e24fe2b

View File

@@ -1,3 +1,17 @@
# This file is part of Birthday Reminder.
#
# Birthday Reminder is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; version 3 only.
#
# Birthday Reminder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Birthday Reminder. If not, see <http://www.gnu.org/licenses/>.
import os import os
import json import json
import datetime import datetime
@@ -5,17 +19,13 @@ import logging
from gi.repository import GLib from gi.repository import GLib
from gajim.plugins import GajimPlugin
from gajim.common import configpaths from gajim.common import configpaths
from gajim.common import app from gajim.common import app
from gajim.common import ged from gajim.common import ged
# Since Gajim 1.1.0 _() has to be imported from gajim.plugins import GajimPlugin
try: from gajim.plugins.plugins_i18n import _
from gajim.common.i18n import _
except ImportError:
pass
log = logging.getLogger('gajim.plugin_system.birthday') log = logging.getLogger('gajim.plugin_system.birthday')
@@ -113,7 +123,8 @@ class BirthDayPlugin(GajimPlugin):
return True return True
def _find_contact(self, jid): @staticmethod
def _find_contact(jid):
accounts = app.contacts.get_accounts() accounts = app.contacts.get_accounts()
for account in accounts: for account in accounts:
contact = app.contacts.get_contacts(account, jid) contact = app.contacts.get_contacts(account, jid)