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
20966ee5
Commit
20966ee5
authored
May 15, 2013
by
Dicson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BirthDayPlugin. porting to gtk3
parent
da695ed7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
birthday_reminder/__init__.py
birthday_reminder/__init__.py
+1
-1
birthday_reminder/manifest.ini
birthday_reminder/manifest.ini
+1
-0
birthday_reminder/plugin.py
birthday_reminder/plugin.py
+4
-5
No files found.
birthday_reminder/__init__.py
View file @
20966ee5
from
plugin
import
BirthDayPlugin
from
.
plugin
import
BirthDayPlugin
birthday_reminder/manifest.ini
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
birthday_reminder/plugin.py
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
.
ite
rite
ms
():
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
)
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