summaryrefslogtreecommitdiff
path: root/python/plugin.py
diff options
context:
space:
mode:
authornegasora <negasora@gmail.com>2018-06-11 19:03:18 -0400
committernegasora <negasora@gmail.com>2018-06-11 19:03:18 -0400
commit3b433195716732f63f352730d481a0a9415639a1 (patch)
tree5577db4c114c81e395767f835818bc79a1976e08 /python/plugin.py
parent89248d9bdcf24e5ba4e49ae9871161648fd2d5a0 (diff)
Add empty list properties to some classes to allow for visibility
Diffstat (limited to 'python/plugin.py')
-rw-r--r--python/plugin.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/plugin.py b/python/plugin.py
index 30a46412..13ca51af 100644
--- a/python/plugin.py
+++ b/python/plugin.py
@@ -83,6 +83,11 @@ class PluginCommand(object):
self.description = str(cmd.description)
self.type = PluginCommandType(cmd.type)
+ @property
+ def list(self):
+ """Allow tab completion to discover metaclass list property"""
+ pass
+
@classmethod
def _default_action(cls, view, action):
try:
@@ -588,6 +593,11 @@ class BackgroundTask(object):
core.BNFreeBackgroundTask(self.handle)
@property
+ def list(self):
+ """Allow tab completion to discover metaclass list property"""
+ pass
+
+ @property
def progress(self):
"""Text description of the progress of the background task (displayed in status bar of the UI)"""
return core.BNGetBackgroundTaskProgressText(self.handle)