summaryrefslogtreecommitdiff
path: root/portato/plugin.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-03 23:47:18 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-03 23:47:18 +0200
commitb92627b162d3db44e683e92ad78cb713f7557f8d (patch)
tree7cca4ebca195f40bab765bd045775ef639e9ebd8 /portato/plugin.py
parent72649c40b6278dbc29a595517fa11948d4df0532 (diff)
parenta32293a8bbb0a90512d4f8e0fbc385257b29e72a (diff)
downloadportato-b92627b162d3db44e683e92ad78cb713f7557f8d.tar.gz
portato-b92627b162d3db44e683e92ad78cb713f7557f8d.tar.bz2
portato-b92627b162d3db44e683e92ad78cb713f7557f8d.zip
Merged in the new plugin window and the plugin deps
Diffstat (limited to 'portato/plugin.py')
-rw-r--r--portato/plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/portato/plugin.py b/portato/plugin.py
index 88e5c55..7b8a493 100644
--- a/portato/plugin.py
+++ b/portato/plugin.py
@@ -81,6 +81,13 @@ class Plugin (object):
def calls (self):
return iter(self.__calls)
+ @property
+ def deps (self):
+ if hasattr(self, "__dependency__"):
+ return iter(self.__dependency__)
+ else:
+ return []
+
def add_menu (self, label, callable):
self.__menus.append(Menu(label, callable))