From: <mik...@us...> - 2008-08-29 17:43:01
|
Revision: 890 http://omc.svn.sourceforge.net/omc/?rev=890&view=rev Author: mike-brasher Date: 2008-08-29 17:43:11 +0000 (Fri, 29 Aug 2008) Log Message: ----------- Fixed problem with failing cmpi.CMPIBroker() (needs to return _BROKER). Modified Paths: -------------- cmpi-bindings/trunk/swig/cmpi_callbacks.i cmpi-bindings/trunk/swig/python/pycmpi_provider.py Modified: cmpi-bindings/trunk/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/trunk/swig/cmpi_callbacks.i 2008-08-29 16:15:57 UTC (rev 889) +++ cmpi-bindings/trunk/swig/cmpi_callbacks.i 2008-08-29 17:43:11 UTC (rev 890) @@ -9,7 +9,7 @@ %extend CMPIBroker { - CMPIBroker() { } + CMPIBroker() { return _BROKER; } ~CMPIBroker() { } void LogMessage(int severity, const char *id, const char *text) { CMLogMessage(_BROKER, severity, id, text, NULL); @@ -78,4 +78,4 @@ CMPIData getProperty(const CMPIContext * ctx, const CMPIObjectPath *op, const char *name) { return CBGetProperty(_BROKER, ctx, op, name, NULL); } -} \ No newline at end of file +} Modified: cmpi-bindings/trunk/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/trunk/swig/python/pycmpi_provider.py 2008-08-29 16:15:57 UTC (rev 889) +++ cmpi-bindings/trunk/swig/python/pycmpi_provider.py 2008-08-29 17:43:11 UTC (rev 890) @@ -112,6 +112,7 @@ def __init__(self, miname, broker): print 'called CMPIProvider(', miname, ',', broker, ')' + broker = cmpi.CMPIBroker() self.broker = broker self.miname = miname self.env = ProviderEnvironment(self.broker) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |