diff options
| author | negasora <negasora@users.noreply.github.com> | 2018-06-28 15:26:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-28 15:26:11 -0400 |
| commit | f43194868415d45c6fd455b58846ce789d55c19f (patch) | |
| tree | 6d27f8aa8320e227e6ab2737feeb59f4c974a3c1 /python | |
| parent | 4e94633e22288784180ba31c96b8e4a958d513a0 (diff) | |
| parent | 829917b3bb442d58dbd5f95dc13634ddb7a02a51 (diff) | |
Merge pull request #1062 from negasora/list_visibility
Add empty list properties to some classes to allow for visibility
Diffstat (limited to 'python')
| -rw-r--r-- | python/architecture.py | 5 | ||||
| -rw-r--r-- | python/binaryview.py | 5 | ||||
| -rw-r--r-- | python/platform.py | 5 | ||||
| -rw-r--r-- | python/plugin.py | 10 | ||||
| -rw-r--r-- | python/scriptingprovider.py | 6 | ||||
| -rw-r--r-- | python/transform.py | 5 | ||||
| -rw-r--r-- | python/update.py | 5 |
7 files changed, 41 insertions, 0 deletions
diff --git a/python/architecture.py b/python/architecture.py index c5f87ec6..df22da7f 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -392,6 +392,11 @@ class Architecture(object): return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass + + @property def full_width_regs(self): """List of full width register strings (read-only)""" count = ctypes.c_ulonglong() diff --git a/python/binaryview.py b/python/binaryview.py index e0e2fbb3..1e078523 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -366,6 +366,11 @@ class BinaryViewType(object): return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass + + @property def name(self): """BinaryView name (read-only)""" return core.BNGetBinaryViewTypeName(self.handle) diff --git a/python/platform.py b/python/platform.py index a79e3b9a..dd756178 100644 --- a/python/platform.py +++ b/python/platform.py @@ -121,6 +121,11 @@ class Platform(object): return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass + + @property def default_calling_convention(self): """ Default calling convention. 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) diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 988f856d..9cacc6ad 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -304,6 +304,12 @@ class ScriptingProvider(object): 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""" + pass + + def register(self): self._cb = core.BNScriptingProviderCallbacks() self._cb.context = 0 diff --git a/python/transform.py b/python/transform.py index 59d719e7..3284ed74 100644 --- a/python/transform.py +++ b/python/transform.py @@ -200,6 +200,11 @@ class Transform(object): log.log_error(traceback.format_exc()) return False + @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass + @abc.abstractmethod def perform_decode(self, data, params): if self.type == TransformType.InvertingTransform: diff --git a/python/update.py b/python/update.py index 1eb8ea61..a89c9348 100644 --- a/python/update.py +++ b/python/update.py @@ -117,6 +117,11 @@ class UpdateChannel(object): self.latest_version_num = ver @property + def list(self): + """Allow tab completion to discover metaclass list property""" + pass + + @property def versions(self): """List of versions (read-only)""" count = ctypes.c_ulonglong() |
