Skip to content

Commit

Permalink
Implement property_help() method
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Mar 13, 2017
1 parent f027aa5 commit 2472be9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions qubesmgmt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ def property_list(self):
# 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
Expand Down

0 comments on commit 2472be9

Please sign in to comment.