From 3b433195716732f63f352730d481a0a9415639a1 Mon Sep 17 00:00:00 2001 From: negasora Date: Mon, 11 Jun 2018 19:03:18 -0400 Subject: Add empty list properties to some classes to allow for visibility --- python/update.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/update.py') diff --git a/python/update.py b/python/update.py index 1eb8ea61..2f817595 100644 --- a/python/update.py +++ b/python/update.py @@ -115,6 +115,10 @@ class UpdateChannel(object): self.name = name self.description = desc self.latest_version_num = ver + @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass @property def versions(self): -- cgit v1.3.1 From 829917b3bb442d58dbd5f95dc13634ddb7a02a51 Mon Sep 17 00:00:00 2001 From: negasora Date: Mon, 11 Jun 2018 19:05:21 -0400 Subject: fix styling --- python/binaryview.py | 1 + python/scriptingprovider.py | 1 + python/update.py | 1 + 3 files changed, 3 insertions(+) (limited to 'python/update.py') diff --git a/python/binaryview.py b/python/binaryview.py index 80298304..81851c1f 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -341,6 +341,7 @@ class BinaryViewType(object): if not isinstance(value, BinaryViewType): return True return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) + @property def list(self): """Allow tab completion to discover metaclass list property""" diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 1e2338d9..9cacc6ad 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -303,6 +303,7 @@ class ScriptingProvider(object): if handle is not None: self.handle = core.handle_of_type(handle, core.BNScriptingProvider) self.__dict__["name"] = core.BNGetScriptingProviderName(handle) + @property def list(self): """Allow tab completion to discover metaclass list property""" diff --git a/python/update.py b/python/update.py index 2f817595..a89c9348 100644 --- a/python/update.py +++ b/python/update.py @@ -115,6 +115,7 @@ class UpdateChannel(object): self.name = name self.description = desc self.latest_version_num = ver + @property def list(self): """Allow tab completion to discover metaclass list property""" -- cgit v1.3.1