Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : openlmi-tools-lmiwbem
---------------------------------------------------------------
commit 53fa4f803fd2de51084493ad8824890d2ac1d3df
Author: Peter Hatina <phatina(a)redhat.com>
Date: Mon May 26 08:48:25 2014 +0200
drop unused LMIBaseClient::_get_classes()
---------------------------------------------------------------
cli/lmi/shell/LMIBaseClient.py | 35 -----------------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/cli/lmi/shell/LMIBaseClient.py b/cli/lmi/shell/LMIBaseClient.py
index ac0e7de..f300d66 100644
--- a/cli/lmi/shell/LMIBaseClient.py
+++ b/cli/lmi/shell/LMIBaseClient.py
@@ -326,41 +326,6 @@ class LMIBaseClient(object):
rval=self._cliconn.EnumerateClassNames(
namespace, **kwargs))
- # TODO: remove?
- @lmi_process_cim_exceptions(
- cimerror_callable=lambda r, e: [],
- conerror_callable=lambda r, e: [])
- def _get_classes(self, namespace=None, **kwargs):
- """
- Returns a :py:class:`CIMClass` object.
-
- :param string namespace: namespace, from which the class names list
- should be retrieved; if None, default namespace will be used (**NOTE:** see
- :py:mod:`wbem`)
- :param string ClassName: defines the class that is the basis for the
enumeration.
- If the ClassName input parameter is absent, this implies that the names of
all
- classes. Default value is None.
- :param bool DeepInheritance: if not present, of False, only the names of
immediate
- child subclasses are returned, otherwise the names of all subclasses of the
- specified class should be returned. Default value is False.
- :param bool LocalOnly: indicates, if any CIM elements (properties, methods, and
- qualifiers) except those added or overridden in the class as specified in
the
- classname input parameter shall not be included in the returned class.
- :param bool IncludeQualifiers: indicates, if all qualifiers for each class
- (including qualifiers on the class and on any returned properties, methods,
or
- method parameters) shall be included as ``<QUALIFIER>`` elements in
the
- response.
- :param bool IncludeClassOrigin: indicates, if the ``CLASSORIGIN`` attribute
shall
- be present on all appropriate elements in each returned class.
- :returns: :py:class:`.LMIReturnValue` object with ``rval`` set to a list of
- :py:class:`CIMClass` objects, if no error occurs; otherwise ``rval`` is set
to
- None and ``errorstr`` to appropriate error string
- :raises: :py:exc:`CIMError`, :py:exc:`ConnectionError`
- """
- return LMIReturnValue(
- rval=self._cliconn.EnumerateClasses(
- namespace, **kwargs))
-
@lmi_process_cim_exceptions()
def _get_class(self, class_name, namespace=None, **kwargs):
"""