From 2472be9d6144a4a93c9c794a239b272fe5122773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 11 Mar 2017 01:45:57 +0100 Subject: [PATCH] Implement property_help() method --- qubesmgmt/base.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qubesmgmt/base.py b/qubesmgmt/base.py index fdfb472..9aad41b 100644 --- a/qubesmgmt/base.py +++ b/qubesmgmt/base.py @@ -113,6 +113,19 @@ class PropertyHolder(object): # TODO: make it somehow immutable return self._properties + def property_help(self, name): + ''' + Get description of a property. + + :return: property help text + ''' + help_text = self.qubesd_call( + self._method_dest, + self._method_prefix + 'Help', + name, + None) + return help_text.decode('ascii') + def property_is_default(self, item): ''' Check if given property have default value