Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 027a086f91163cff4294ea199e1a71b7eb02ed85
Author: Peter Hatina <phatina(a)redhat.com>
Date: Fri Aug 2 15:16:57 2013 +0200
fix default values in doc strings in LMIInstance::associators(), ::first_associatr(),
::references(), ::first_reference()
---------------------------------------------------------------
cli/lmi/shell/LMIInstance.py | 35 +++++++++++++++++++++--------------
1 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/cli/lmi/shell/LMIInstance.py b/cli/lmi/shell/LMIInstance.py
index 80218dd..364f129 100644
--- a/cli/lmi/shell/LMIInstance.py
+++ b/cli/lmi/shell/LMIInstance.py
@@ -182,23 +182,23 @@ class LMIInstance(LMIBaseObject):
AssocClass -- valid CIM association class name. It acts as a filter on the
returned set of names by mandating that each returned name identify an
object
that shall be associated to the source object through an instance of
this
- class or one of its subclasses.
+ class or one of its subclasses. Default value is None.
ResultClass -- valid CIM class name. It acts as a filter on the returned set
of names by mandating that each returned name identify an object that
shall be
either an instance of this class (or one of its subclasses) or be this
class
- (or one of its subclasses).
+ (or one of its subclasses). Default value is None.
Role -- valid property name. It acts as a filter on the returned set of
names
by mandating that each returned name identify an object that shall be
associated to the source object through an association in which the
source
object plays the specified role. That is, the name of the property in
the
association class that refers to the source object shall match the value
of
- this parameter.
+ this parameter. Default value is None.
ResultRole -- valid property name. It acts as a filter on the returned set
of
names by mandating that each returned name identify an object that shall
be
associated to the source object through an association in which the
named
returned object plays the specified role. That is, the name of the
property
in the association class that refers to the returned object shall match
the
- value of this parameter.
+ value of this parameter. Default value is None.
"""
assoc_names_list = self._client._get_associator_names(self._cim_instance,
**kwargs)
return map(lambda assoc_name: lmi_wrap_cim_instance_name(self._client,
assoc_name), assoc_names_list)
@@ -215,23 +215,23 @@ class LMIInstance(LMIBaseObject):
AssocClass -- valid CIM association class name. It acts as a filter on the
returned set of names by mandating that each returned name identify an
object
that shall be associated to the source object through an instance of
this
- class or one of its subclasses.
+ class or one of its subclasses. Default value is None.
ResultClass -- valid CIM class name. It acts as a filter on the returned set
of names by mandating that each returned name identify an object that
shall be
either an instance of this class (or one of its subclasses) or be this
class
- (or one of its subclasses).
+ (or one of its subclasses). Default value is None.
Role -- valid property name. It acts as a filter on the returned set of
names
by mandating that each returned name identify an object that shall be
associated to the source object through an association in which the
source
object plays the specified role. That is, the name of the property in
the
association class that refers to the source object shall match the value
of
- this parameter.
+ this parameter. Default value is None.
ResultRole -- valid property name. It acts as a filter on the returned set
of
names by mandating that each returned name identify an object that shall
be
associated to the source object through an association in which the
named
returned object plays the specified role. That is, the name of the
property
in the association class that refers to the returned object shall match
the
- value of this parameter.
+ value of this parameter. Default value is None.
"""
result = self.associator_names(**kwargs)
if not result:
@@ -345,11 +345,11 @@ class LMIInstance(LMIBaseObject):
ResultClass -- valid CIM class name. It acts as a filter on the returned set
of object names by mandating that each returned Object Name identify an
instance of this class (or one of its subclasses) or this class (or one
of its
- subclasses).
+ subclasses). Default value is None.
Role -- valid property name. It acts as a filter on the returned set of
object
names by mandating that each returned object name shall identify an
object
that refers to the target instance through a property with a name that
matches
- the value of this parameter.
+ the value of this parameter. Default value is None.
"""
reference_names_list = self._client._get_reference_names(self._cim_instance,
**kwargs)
return map(lambda ref_name: lmi_wrap_cim_instance_name(self._client, ref_name),
reference_names_list)
@@ -366,11 +366,11 @@ class LMIInstance(LMIBaseObject):
ResultClass -- valid CIM class name. It acts as a filter on the returned set
of object names by mandating that each returned Object Name identify an
instance of this class (or one of its subclasses) or this class (or one
of its
- subclasses).
+ subclasses). Default value is None.
Role -- valid property name. It acts as a filter on the returned set of
object
names by mandating that each returned object name shall identify an
object
that refers to the target instance through a property with a name that
matches
- the value of this parameter.
+ the value of this parameter. Default value is None.
"""
result = self.reference_names(**kwargs)
if not result:
@@ -423,15 +423,22 @@ class LMIInstance(LMIBaseObject):
ResultClass -- valid CIM class name. It acts as a filter on the returned set
of objects by mandating that each returned object shall be an instance of
this
class (or one of its subclasses) or this class (or one of its
subclasses).
+ Default value is None.
Role -- valid property name. It acts as a filter on the returned set of
objects by mandating that each returned object shall refer to the target
object through a property with a name that matches the value of this
- parameter.
+ parameter. Default value is None.
+ IncludeQualifiers -- bool flag indicating, if all qualifiers for each object
+ (including qualifiers on the object and on any returned properties) shall
be
+ included as <QUALIFIER> elements in the response. Default value is
False.
+ IncludeClassOrigin -- bool flag indicating, if the CLASSORIGIN attribute
shall
+ be present on all appropriate elements in each returned object. Default
+ value is False.
PropertyList -- if not None, the members of the list define one or more
property
names. Each returned object shall not include elements for any
properties
missing from this list. If PropertyList is an empty list, no properties
are included in each returned object. If PropertyList is None, no
- additional filtering is defined.
+ additional filtering is defined. Default value is None.
"""
result = self.references(**kwargs)
if not result: