Typos fix and minor cleanup
Commit 57aab5de
copy-pasted a typo, introduced a new one and used bad
order of parameters, so I'm fixing it so we're not stuck with it
forever.
This commit is contained in:
parent
2dcba19f8c
commit
ab94df86c4
|
@ -250,9 +250,8 @@ class XMLProperty(property):
|
||||||
def __init__(self, doc=None, xpath=None, name=None,
|
def __init__(self, doc=None, xpath=None, name=None,
|
||||||
set_converter=None, validate_cb=None,
|
set_converter=None, validate_cb=None,
|
||||||
make_getter_xpath_cb=None, make_setter_xpath_cb=None,
|
make_getter_xpath_cb=None, make_setter_xpath_cb=None,
|
||||||
is_bool=False, is_int=False, is_yesno=False,
|
is_bool=False, is_int=False, is_yesno=False, is_onoff=False,
|
||||||
clear_first=None, default_cb=None, default_name=None,
|
clear_first=None, default_cb=None, default_name=None):
|
||||||
is_onoff=False):
|
|
||||||
"""
|
"""
|
||||||
Set a XMLBuilder class property that represents a value in the
|
Set a XMLBuilder class property that represents a value in the
|
||||||
<domain> XML. For example
|
<domain> XML. For example
|
||||||
|
@ -281,9 +280,9 @@ class XMLProperty(property):
|
||||||
static xpath. This allows passing functions which generate
|
static xpath. This allows passing functions which generate
|
||||||
an xpath for getting or setting.
|
an xpath for getting or setting.
|
||||||
@param is_bool: Whether this is a boolean property in the XML
|
@param is_bool: Whether this is a boolean property in the XML
|
||||||
@param is_int: Whethere this is an integer property in the XML
|
@param is_int: Whether this is an integer property in the XML
|
||||||
@param is_yesno: Whethere this is a yes/no property in the XML
|
@param is_yesno: Whether this is a yes/no property in the XML
|
||||||
@param is_onoff: Whethere this is a on/off property in the XML
|
@param is_onoff: Whether this is an on/off property in the XML
|
||||||
@param clear_first: List of xpaths to unset before any 'set' operation.
|
@param clear_first: List of xpaths to unset before any 'set' operation.
|
||||||
For those weird interdependent XML props like disk source type and
|
For those weird interdependent XML props like disk source type and
|
||||||
path attribute.
|
path attribute.
|
||||||
|
|
Loading…
Reference in New Issue