Re: [python-win32] wmi query.

2008-03-26 Thread mark.a.brand
lovely, thanks again. On 26/03/2008, Tim Golden [EMAIL PROTECTED] wrote: mark.a.brand wrote: what about events, for example i only want to return error and warning events for the last 4 days from all logs. getting all the events and then filtering them will be terrribly slow

[python-win32] wmi query.

2008-03-24 Thread mark.a.brand
hi: how do you incorporate a where clause and selected field clause in a wmi query ? this gets me caption and state fields for all services c = wmi.WMI() for service in c.Win32_Service (['Caption', 'State']) ... this gets me all fields for stopped services c = wmi.WMI() for service in

Re: [python-win32] advice on architecting or program design in python:

2008-03-11 Thread mark.a.brand
as being clumsy, so I was looking for a better way to represent this behaviour. thanks for you assistance tim. cheers mark On 11/03/2008, Tim Golden [EMAIL PROTECTED] wrote: mark.a.brand wrote: hi: i am new to python and wish but am writing a program as both a learning

Re: [python-win32] advice on architecting or program design in python:

2008-03-11 Thread mark.a.brand
in service.properties) Service (**d) etc etc. session.flush () session.close () Thanks for your patience. Cheers Mark On 11/03/2008, Tim Golden [EMAIL PROTECTED] wrote: mark.a.brand wrote: sorry - client as in customer Ah. I see. (Didn't think of that :) i will try and explain better

Re: [python-win32] advice on architecting or program design in python:

2008-03-11 Thread mark.a.brand
Hi Tim: Thanks, that was what I was after, but maybe you are right a couple of extra for loops is not looking too bad after all. Cheers Mark On 11/03/2008, Tim Golden [EMAIL PROTECTED] wrote: Tim Golden wrote: [... snip Elixir-based solution ...] I realise, rereading my post that it

Re: [python-win32] advice on architecting or program design in python:

2008-03-11 Thread mark.a.brand
and experience grows. thanks again mark On 12/03/2008, Tim Golden [EMAIL PROTECTED] wrote: mark.a.brand wrote: Hi Tim: Thanks, that was what I was after, but maybe you are right a couple of extra for loops is not looking too bad after all. The code looks a little scary at first sight but it's

[python-win32] advice on architecting or program design in python:

2008-03-10 Thread mark.a.brand
hi: i am new to python and wish but am writing a program as both a learning experience and which may even get used if it is any good. purpose of this program: is to retrieve and store (for historical purposes) system-info for multiple clients about multiple windows servers using tim golden's