Implement property_help() method

This commit is contained in:
Marek Marczykowski-Górecki 2017-03-11 01:45:57 +01:00
parent f027aa5385
commit 2472be9d61
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -113,6 +113,19 @@ class PropertyHolder(object):
# TODO: make it somehow immutable # TODO: make it somehow immutable
return self._properties 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): def property_is_default(self, item):
''' '''
Check if given property have default value Check if given property have default value