Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2013-08-15 12:27:51 +0400
committerDenis Fomin <fominde@gmail.com>2013-08-15 12:27:51 +0400
commitf65f9d3bf1532b999887435e239baf9cba7e5299 (patch)
tree0cf282315d9ca9f4c306e3117f14c45c16fb0745 /url_shortener/url_shortener.py
parentb0fc66bda9f476b712af187bb0b423cc102c3a8e (diff)
UrlShortenerPlugin. coding style
Diffstat (limited to 'url_shortener/url_shortener.py')
-rw-r--r--url_shortener/url_shortener.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/url_shortener/url_shortener.py b/url_shortener/url_shortener.py
index c4019ec..2a02be0 100644
--- a/url_shortener/url_shortener.py
+++ b/url_shortener/url_shortener.py
@@ -32,13 +32,12 @@ class UrlShortenerPlugin(GajimPlugin):
'MAX_CHARS': (50, ('MAX_CHARS(30-...)')),
'IN_MAX_CHARS': (50, ('MAX_CHARS(30-...)')),
'SHORTEN_OUTGOING': (False, ''),}
- self.events_handlers['message-outgoing'] = (ged.OUT_PRECORE,
- self.handle_outgoing_msg)
- self.events_handlers['gc-message-outgoing'] = (ged.OUT_PRECORE,
- self.handle_outgoing_msg)
+ self.events_handlers = {'message-outgoing': (ged.OUT_PRECORE,
+ self.handle_outgoing_msg),
+ 'gc-message-outgoing': (ged.OUT_PRECORE,
+ self.handle_outgoing_msg)}
self.chat_control = None
self.controls = []
- self.is_active = None
def handle_outgoing_msg(self, event):
if not self.active:
@@ -99,12 +98,6 @@ class UrlShortenerPlugin(GajimPlugin):
control.disconnect_from_chat_control()
self.controls.remove(control)
- def activate(self):
- self.active = True
-
- def deactivate(self):
- self.active = False
-
class Base(object):
def __init__(self, plugin, chat_control):