[python-win32] Guaranteed cleanup code execution?

2010-01-11 Thread Ross Boylan
iciently bad that, like SIGSEGV, I don't want to run the cleanup code (even if I can). The process will eventually run as a service. I assume there is some protocol for managing normal service control manager requests to start and stop. Thanks for any pointers. Ross Boylan __

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-17 Thread Ross Boylan
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 > > > > con = wmi.WMI(namespace=wpcns) > > rules = con.W

[python-win32] win32com reference documentation

2009-12-16 Thread Ross Boylan
I don't see documentation on many of the core win32com modules, e.g, win32com.client. Dispatch does not appear in the index. More precisely, I see examples and tutorials, but no reference material. There is reference documentation on a few components--apparently mapi and pythoncom, but not in

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: import wmi c = wmi.WMI (namespace="cimv2/Applications/WindowsParentalControls") rules = c.WpcURLOverride (Sid=kelsey.SID) print len (rules) I've encountered a glitch: I can't seem to update the values in the ru

Re: [python-win32] Apparent bug in COM browser on Vista

2009-12-16 Thread Ross Boylan
Vernon Cole wrote: Dear Ross: The combined Python package hosted by Active State is convenient, but does not always stay up to date. The current build of pywin32 is 214. Many bug fixes have happened in that time. I just tried the build 214 COM browser "on my Vista Basic and it works correc

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

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

[python-win32] Apparent bug in COM browser on Vista

2009-12-16 Thread Ross Boylan
st.InsertItem(parentHandle, hInsertAfter, (None, None, None, text, bitmapCol, bitmapSel, cItems, 0)) TypeError: The text item must be a string or None (got unicode) The "+" expands to an item that says "The type info can not be loaded."

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-20

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

2009-12-15 Thread Ross Boylan
ere SID = """ _ & kelsey.SID &"""") WScript.Echo urls.Count I speculate this is a permission issue, since I understand admin accounts have an elevated and a regular privilege token. The parental controls documentation doesn't indicate there are permiss

[python-win32] registering for power events

2009-12-15 Thread Ross Boylan
++ interface; I don't see any COM interface. I think this is new in Vista. Is there a way to do this from Python? Thanks. Ross Boylan ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32