Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evert Mouw
gajim-plugins
Commits
20966ee5
Commit
20966ee5
authored
11 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
BirthDayPlugin. porting to gtk3
parent
da695ed7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
birthday_reminder/__init__.py
+1
-1
1 addition, 1 deletion
birthday_reminder/__init__.py
birthday_reminder/manifest.ini
+1
-0
1 addition, 0 deletions
birthday_reminder/manifest.ini
birthday_reminder/plugin.py
+4
-5
4 additions, 5 deletions
birthday_reminder/plugin.py
with
6 additions
and
6 deletions
birthday_reminder/__init__.py
+
1
−
1
View file @
20966ee5
from
plugin
import
BirthDayPlugin
from
.
plugin
import
BirthDayPlugin
This diff is collapsed.
Click to expand it.
birthday_reminder/manifest.ini
+
1
−
0
View file @
20966ee5
...
...
@@ -5,3 +5,4 @@ version: 0.0.2
description:
Birthday
reminder
plugin
authors:
Evgeniy
Popov
<evgeniypopov@gmail.com>
homepage:
https://bitbucket.org/axce1/bday
min_gajim_version:
0.15.10
This diff is collapsed.
Click to expand it.
birthday_reminder/plugin.py
+
4
−
5
View file @
20966ee5
...
...
@@ -2,7 +2,7 @@ import os
import
glob
import
datetime
from
xml.dom.minidom
import
*
import
go
bject
from
gi.repository
import
GO
bject
from
plugins
import
GajimPlugin
from
plugins.helpers
import
log_calls
...
...
@@ -46,7 +46,7 @@ class BirthDayPlugin(GajimPlugin):
today
=
datetime
.
date
.
today
()
for
key
,
value
in
date_dict
.
iter
items
():
for
key
,
value
in
date_dict
.
items
():
try
:
convert_date
=
datetime
.
datetime
.
strptime
(
value
,
"
%Y-%m-%d
"
)
user_bday
=
datetime
.
date
(
today
.
year
,
convert_date
.
month
,
...
...
@@ -78,11 +78,10 @@ class BirthDayPlugin(GajimPlugin):
@log_calls
(
'
BirthDayPlugin
'
)
def
activate
(
self
):
self
.
check_birthdays
()
self
.
timeout_id
=
go
bject
.
timeout_add_seconds
(
24
*
3600
,
self
.
timeout_id
=
GO
bject
.
timeout_add_seconds
(
24
*
3600
,
self
.
check_birthdays
)
@log_calls
(
'
BirthDayPlugin
'
)
def
deactivate
(
self
):
if
self
.
timeout_id
>
0
:
gobject
.
source_remove
(
self
.
timeout_id
)
GObject
.
source_remove
(
self
.
timeout_id
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment