diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:47:18 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:47:18 +0200 |
commit | b92627b162d3db44e683e92ad78cb713f7557f8d (patch) | |
tree | 7cca4ebca195f40bab765bd045775ef639e9ebd8 /portato/plugin.py | |
parent | 72649c40b6278dbc29a595517fa11948d4df0532 (diff) | |
parent | a32293a8bbb0a90512d4f8e0fbc385257b29e72a (diff) | |
download | portato-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.py | 7 |
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)) |