Skip to content

Commit

Permalink
Added method get_event_params.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Delle Cave committed Nov 16, 2019
1 parent be01dff commit bd9f1a2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
python-dwho (0.3.4) unstable; urgency=medium

* Added method get_event_params.

-- Adrien DELLE CAVE (Decryptus) <adc@doowan.net> Sat, 16 Nov 2019 02:37:26 +0100

python-dwho (0.3.3) unstable; urgency=medium

* Added function get_inotify_instance.
Expand Down
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.3
0.3.4
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.3
0.3.4
8 changes: 8 additions & 0 deletions dwho/classes/inoplugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ def init(self, config):

return self

def get_event_params(self):
if hasattr(self.event, 'plugins') \
and isinstance(self.event.plugins, dict) \
and self.PLUGIN_NAME in self.event.plugins:
return self.event.plugins[self.PLUGIN_NAME].copy()

return {}

def _get_path_all_options(self):
if not self.cfg_path \
or self.cfg_path.path not in self.inopaths \
Expand Down
4 changes: 2 additions & 2 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: dwho
author: Adrien Delle Cave
author_email: pypi@doowan.net
copyright: '2019 Adrien Delle Cave'
release: '0.3.3'
version: '0.3.3'
release: '0.3.4'
version: '0.3.4'
license: License GPL-3
url: https://github.com/decryptus/dwho
python_requires:
Expand Down

0 comments on commit bd9f1a2

Please sign in to comment.