Re: [python-win32] [Correction] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
>> I suspect the win32_PortableBattery class is for machines with advanced >> power supply management capabilities. > Obviously it's for machines that have a *wireless* battery. :) Now you tell me! Malcolm ___ python-win32 mailing list python-win32@p

Re: [python-win32] [Correction] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread Greg Ewing
pyt...@bdurham.com wrote: I'm not entirely clear on why there are 2 battery classes and why I would choose to use vs. the other, but I suspect the Win32_PortableBattery class is for machines with advanced power supply management capabilities. Obviously it's for machines that have a *wireless*

Re: [python-win32] [Correction] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
Tim, The problem with Win32_PortableBattery appears to be that I need to use Win32_Battery instead. Using the latter, everything works as expected. I'm not entirely clear on why there are 2 battery classes and why I would choose to use vs. the other, but I suspect the Win32_PortableBattery class

Re: [python-win32] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
Hi Tim, > It looks like you're a little bit confused as to what's going on here. (Or > maybe I am :) ). No, I'm definitely the one that's confused! :) > Although you *can*, you won't normally use the class as an object in its own > right. But maybe you were just checking that you'd got the rig

Re: [python-win32] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread Tim Golden
On 08/03/2010 02:38, pyt...@bdurham.com wrote: I'm trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work. Oddly enough, both classes return empty results on my laptop. I'm wondering if I'm using the WMI interface correctly or if I need to be more explict in the argume