[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
- Original Message - From: "Brad Tilley" <[EMAIL PROTECTED]> To: "Roger Upole" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 31, 2006 8:28 PM Subject: Re: [python-win32] Re: Extracting share permissions > Quoting Roger Upole <[EMAIL PROTECTED]>: > >> [Sorry, somehow I massively screwe

Re: [python-win32] Spawnv problem

2006-01-31 Thread Tim Roberts
On Tue, 31 Jan 2006 15:08:24 -,"Frank Peacock" <[EMAIL PROTECTED]> wrote: >I cannot seem to spawn a subprocess. The subprocess does not seem to be run. > >Attached are my two files. There is a main.py file and a subprocess.py file. >They simpy print their names. > >Can anyone suggest a reason

Re: [python-win32] Apologies - Spawn problem

2006-01-31 Thread John Machin
Frank Peacock wrote: > Hello again > > I need to correct the previous email. The correct main.py file is attached > now. > > The interesting thing is that the naming of the python file does not change > the result. > > The result always is output to the screen: "Main" and then "Exit", there is >

[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
[Sorry, somehow I massively screwed up the format the first time] There are a couple of different options for persisting a security descriptor. buffer(security_descriptor)[:] retrieves the raw bytes in binary form. This can be passed to pywintypes.SECURITY_DESCRIPTOR to recreate the PySECURITY_D

[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
>> Mark, would you write an example of this using SHARE_INFO_502?>>I'm >> afraid I don't have the time to do it all.>>As a clue:> import >> pprint pprint.pprint(win32net.NetShareEnum(None, >> 502))>([{'current_uses': 0,> 'max_uses': -1,> 'netname': u'IPC$',> >> 'passwd': None,> '

Re: [python-win32] Extracting share permissions

2006-01-31 Thread Mark Hammond
> Mark, would you write an example of this using SHARE_INFO_502? I'm afraid I don't have the time to do it all. As a clue: >>> import pprint >>> pprint.pprint(win32net.NetShareEnum(None, 502)) ([{'current_uses': 0, 'max_uses': -1, 'netname': u'IPC$', 'passwd': None, 'path': u'', '

[python-win32] Spawnv problem

2006-01-31 Thread Frank Peacock
Hello   I cannot seem to spawn a subprocess. The subprocess does not seem to be run.   Attached are my two files. There is a main.py file and a subprocess.py file. They simpy print their names.   Can anyone suggest a reason?   Thank you Frank Peacock print("subprocess") # Main script import os

[python-win32] Apologies - Spawn problem

2006-01-31 Thread Frank Peacock
Hello again I need to correct the previous email. The correct main.py file is attached now. The interesting thing is that the naming of the python file does not change the result. The result always is output to the screen: "Main" and then "Exit", there is no "subprocess" outputted. # Main script

Re: [python-win32] Reading properties from office builtin dialogs?

2006-01-31 Thread Tim Roberts
On Tue, 31 Jan 2006 10:32:59 +0100, Anders Quist <[EMAIL PROTECTED]> wrote: >I have an application that wants to print a large set of documents. >Therefore, I want to have word display its print dialog so the user >can supply printer settings once, that I can read and store for use >with all follo

[python-win32] Problems getting a PythonCOM server to communicate with VB .NET

2006-01-31 Thread Moof
I have the following code:class SynchronousProxy:    _reg_progid_ = 'KukaburraCom.SynchronousProxy'    _reg_clsid_ = '{138FA88E-635D-4470-97A8-A9FF43F8E23D}'    _public_methods_ = ['connect', 'poll', 'get_rooms']     def connect(self, host, port):    pass # real code here    def poll(self, idnum): 

Re: [python-win32] Extracting share permissions

2006-01-31 Thread Brad Tilley
Quoting Mark Hammond <[EMAIL PROTECTED]>: > It looks as though the SHARE_INFO_502 supports this via the > sh502_security_descriptor attribute. Presumably this can be used with > NetShareGetInfo and NetShareSetInfo. > > Mark. Mark, would you write an example of this using SHARE_INFO_502? I'm not

Re: [python-win32] Reading properties from office builtin dialogs?

2006-01-31 Thread Bob Gailer
Anders Quist wrote: > I have an application that wants to print a large set of documents. > Therefore, I want to have word display its print dialog so the user > can supply printer settings once, that I can read and store for use > with all following prints. > > At first glance, this would seem str

[python-win32] Reading properties from office builtin dialogs?

2006-01-31 Thread Anders Quist
I have an application that wants to print a large set of documents. Therefore, I want to have word display its print dialog so the user can supply printer settings once, that I can read and store for use with all following prints. At first glance, this would seem straight-forward; VBA like so: