Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
7e7e24fe
Commit
7e7e24fe
authored
Nov 20, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[birthday_reminder] Add license header
parent
358302fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
birthday_reminder/plugin.py
birthday_reminder/plugin.py
+19
-8
No files found.
birthday_reminder/plugin.py
View file @
7e7e24fe
# 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
json
import
datetime
...
...
@@ -5,17 +19,13 @@ import logging
from
gi.repository
import
GLib
from
gajim.plugins
import
GajimPlugin
from
gajim.common
import
configpaths
from
gajim.common
import
app
from
gajim.common
import
ged
# Since Gajim 1.1.0 _() has to be imported
try
:
from
gajim.common.i18n
import
_
except
ImportError
:
pass
from
gajim.plugins
import
GajimPlugin
from
gajim.plugins.plugins_i18n
import
_
log
=
logging
.
getLogger
(
'gajim.plugin_system.birthday'
)
...
...
@@ -113,7 +123,8 @@ class BirthDayPlugin(GajimPlugin):
return
True
def
_find_contact
(
self
,
jid
):
@
staticmethod
def
_find_contact
(
jid
):
accounts
=
app
.
contacts
.
get_accounts
()
for
account
in
accounts
:
contact
=
app
.
contacts
.
get_contacts
(
account
,
jid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment