onConnect notification for plugins

This commit is contained in:
Ammar Askar committed 2012-12-26 20:23:47 +05:00
1 parent 83ad822bad
commit 6025e97932
3 files changed
+12 -3

No files matched your search

+7
View File
@@ -47,6 +47,13 @@ class PluginLoader():
except AttributeError:
pass
def notify(self, methodName):
for plugin in self.plugins:
try:
getattr(plugin, methodName)()
except AttributeError:
pass
def getPlugins(self):
return self.plugins