| 
     
      
      
      From: <ba...@us...> - 2007-06-20 07:10:59
      
     
   | 
Revision: 475
          http://svn.sourceforge.net/omc/?rev=475&view=rev
Author:   bartw
Date:     2007-06-20 00:11:00 -0700 (Wed, 20 Jun 2007)
Log Message:
-----------
make provider classes call superclass __init__
Modified Paths:
--------------
    pybase/trunk/OMC_InitdService.py
    pybase/trunk/OMC_LogicalFile.py
    pybase/trunk/OMC_OperatingSystem.py
    pybase/trunk/OMC_UnitaryComputerSystem.py
    pybase/trunk/OMC_UnixProcess.py
Modified: pybase/trunk/OMC_InitdService.py
===================================================================
--- pybase/trunk/OMC_InitdService.py	2007-06-19 22:13:52 UTC (rev 474)
+++ pybase/trunk/OMC_InitdService.py	2007-06-20 07:11:00 UTC (rev 475)
@@ -56,7 +56,7 @@
     """
 
     def __init__ (self):
-        pass
+        CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         """Return an instance.
Modified: pybase/trunk/OMC_LogicalFile.py
===================================================================
--- pybase/trunk/OMC_LogicalFile.py	2007-06-19 22:13:52 UTC (rev 474)
+++ pybase/trunk/OMC_LogicalFile.py	2007-06-20 07:11:00 UTC (rev 475)
@@ -35,7 +35,7 @@
 """
 
 import pywbem
-from pywbem import CIMProvider
+#from pywbem import CIMProvider
 from stat import *
 from statvfs import *
 from socket import getfqdn
@@ -138,7 +138,7 @@
 
 
 
-class OMC_LinuxFileProvider(CIMProvider):
+class OMC_LinuxFileProvider(pywbem.CIMProvider):
     """Instrument the CIM class OMC_LinuxFile 
 
     The UnixFile class holds properties that are valid for various
@@ -192,7 +192,7 @@
         # Vendor_Reserved = 0x8000..
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance (self, env, model, cim_class, stat=None):
         """Return an instance.
@@ -425,7 +425,7 @@
         """
         raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED, '')
 
-class CIM_LogicalFileProvider(CIMProvider):
+class CIM_LogicalFileProvider(pywbem.CIMProvider):
     """Instrument the CIM class CIM_LogicalFile 
 
     A LogicalFile is a named collection of data or executable code, or
@@ -435,7 +435,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance (self, env, model, cim_class, stat=None):
         """Return an instance.
@@ -588,7 +588,7 @@
         """
         raise pywbem.CIMError(pywbem.CIM_ERR_NOT_SUPPORTED, '')
 
-class OMC_LinuxFileIdentityProvider(CIMProvider):
+class OMC_LinuxFileIdentityProvider(pywbem.CIMProvider):
     """Instrument the CIM class OMC_LinuxFileIdentity 
 
     CIM_FileIdentity indicates that a UnixFile describes Unix-specific
@@ -600,7 +600,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance (self, env, model, cim_class):
         """Return an instance.
@@ -722,7 +722,7 @@
             yield model
 
 
-class OMC_LinuxDirectoryContainsFileProvider(CIMProvider):
+class OMC_LinuxDirectoryContainsFileProvider(pywbem.CIMProvider):
     """Instrument the CIM class OMC_LinuxDirectoryContainsFile 
 
     Specifies the hierarchical arrangement of LogicalFiles in a Directory.
@@ -730,7 +730,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance (self, env, model, cim_class):
         """Return an instance.
Modified: pybase/trunk/OMC_OperatingSystem.py
===================================================================
--- pybase/trunk/OMC_OperatingSystem.py	2007-06-19 22:13:52 UTC (rev 474)
+++ pybase/trunk/OMC_OperatingSystem.py	2007-06-20 07:11:00 UTC (rev 475)
@@ -54,7 +54,7 @@
     """
 
     def __init__ (self):
-        pass
+        CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         """Return an instance.
@@ -570,7 +570,7 @@
     """
 
     def __init__ (self):
-        pass
+        CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         """Return an instance.
Modified: pybase/trunk/OMC_UnitaryComputerSystem.py
===================================================================
--- pybase/trunk/OMC_UnitaryComputerSystem.py	2007-06-19 22:13:52 UTC (rev 474)
+++ pybase/trunk/OMC_UnitaryComputerSystem.py	2007-06-20 07:11:00 UTC (rev 475)
@@ -46,7 +46,7 @@
     """
 
     def __init__ (self):
-        pass
+        CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         """Return an instance.
Modified: pybase/trunk/OMC_UnixProcess.py
===================================================================
--- pybase/trunk/OMC_UnixProcess.py	2007-06-19 22:13:52 UTC (rev 474)
+++ pybase/trunk/OMC_UnixProcess.py	2007-06-20 07:11:00 UTC (rev 475)
@@ -458,7 +458,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def fill_instance(self, model, lp, keys_only=False):
         model['OSCreationClassName'] = 'OMC_LinuxOperatingSystem'
@@ -726,7 +726,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         logger = env.get_logger()
@@ -806,7 +806,7 @@
     """
 
     def __init__ (self):
-        pass
+        pywbem.CIMProvider.__init__(self)
 
     def get_instance(self, env, model, cim_class):
         logger = env.get_logger()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |