Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-20 Thread Tim Golden
Tim Golden wrote: Ross Boylan wrote: I've encountered a glitch: I can't seem to update the values in the rules I retrieve. The relevant snippet is python con = wmi.WMI(namespace=wpcns) rules = con.WpcURLOverride (Sid=kelsey.SID) for r in rules: if r.URL.endswith(facebook.com/): #

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-17 Thread Tim Golden
Ross Boylan wrote: I've encountered a glitch: I can't seem to update the values in the rules I retrieve. The relevant snippet is python con = wmi.WMI(namespace=wpcns) rules = con.WpcURLOverride (Sid=kelsey.SID) for r in rules: if r.URL.endswith(facebook.com/): # flip whether or not

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-17 Thread Tim Golden
Ross Boylan wrote: On Thu, 2009-12-17 at 14:51 +, Tim Golden wrote: Ross Boylan wrote: I've encountered a glitch: I can't seem to update the values in the rules I retrieve. The relevant snippet is python con = wmi.WMI(namespace=wpcns) rules = con.WpcURLOverride (Sid=kelsey.SID) for r in

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-17 Thread Ross Boylan
On Thu, 2009-12-17 at 18:26 +, Tim Golden wrote: Curses. Clutching at straws: does wmi.__version__ definitely show 1.4.6? Yes. Ross ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-16 Thread Ross Boylan
Tim Golden wrote: code import wmi c = wmi.WMI (namespace=cimv2/Applications/WindowsParentalControls) rules = c.WpcURLOverride (Sid=kelsey.SID) print len (rules) /code I've encountered a glitch: I can't seem to update the values in the rules I retrieve. The relevant snippet is python con =

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-16 Thread Ross Boylan
Tim Golden wrote: Ross Boylan wrote: Tim Golden wrote: code import wmi c = wmi.WMI (namespace=cimv2/Applications/WindowsParentalControls) rules = c.WpcURLOverride (Sid=kelsey.SID) print len (rules) /code I've encountered a glitch: I can't seem to update the values in the rules I retrieve.

[python-win32] python vs vbs with parental controls (security issue?)

2009-12-15 Thread Ross Boylan
This python script gets no URL overrides and no user settings: PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. import win32com.client locator =

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-15 Thread Tim Golden
Ross Boylan wrote: This python script gets no URL overrides and no user settings: PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. import

Re: [python-win32] python vs vbs with parental controls (security issue?) [resolved]

2009-12-15 Thread Ross Boylan
On Tue, 2009-12-15 at 20:21 +, Tim Golden wrote: Ross Boylan wrote: This python script gets no URL overrides and no user settings: PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About