[python-win32] Character sets and symbols question

2008-01-29 Thread Bob Gailer
I'm copying from a pdf file. When I paste it in an email it looks like what I want: ├──┬─word:──┬──┤ When I paste it into PythonWin I get: „¥„Ÿ„Ÿ„¦„Ÿword:„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„¦„Ÿ„Ÿ„§ How can I get the nice graphic in PythonWin? -- Bob Gailer 919-636-4239 Chapel Hill, NC __

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
Hmm, I'm getting a different error now. Could it be having trouble passing one wmi object as a parameter to the method of another? import wmi site = 'MV1' wmi_server = 'mtv-sql-2' resource = 23012 wmi_namespace = 'root\\sms\\site_%s' % site conn = wmi.WMI(computer=wmi_server, namespace=wmi_namesp

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Roberts
Tim Johnson wrote: > Thanks, I always forget about makepy (what a terrible name). Ah, tool names. Makepy is at least descriptive. My vote for worst tool names has to be the WiX project, Windows Installer XML, which lets you build Windows installer packages with a text editor and a command-line

Re: [python-win32] win32com: ServerBusy message

2008-01-29 Thread Mark Hammond
If by "command-line window" you mean the interactive prompt in pythonwin, IDLE or any other GUI environment, the problem will likely be the lack of a "message pump" (google for that, particularly on this list). Although if "command-line window" means running python.exe from a command-prompt and en

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
Thanks, I always forget about makepy (what a terrible name). I'm still relatively new to Python. On Jan 29, 2008 4:39 PM, Mark Hammond <[EMAIL PROTECTED]> wrote: > I can't see docs for that property, but if it takes optional params, it > might have been transformed to a SetRuleName() method. Y

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Mark Hammond
I can't see docs for that property, but if it takes optional params, it might have been transformed to a SetRuleName() method. You could try adding: rule_obj. _print_details_() and see what is dumped. Finally, if you can use makepy, the generated file should make it clearer to see what

[python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
So I'm trying to automate some tasks with SMS, and I've run into a roadblock when creating new collection membership rules. The code below is a method of a Collection object. It's a rough draft, so don't worry too much about the top half unless you think it might be screwing something up. My pro

Re: [python-win32] win32com: ServerBusy message

2008-01-29 Thread Michel Claveau
Hi! "Server Busy" is primarily during the opening of the server. Minimize the code inside opening (or use thread), for a faster return). @-salutations -- Michel Claveau ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mai

[python-win32] win32com: ServerBusy message

2008-01-29 Thread mauro tizianel
Hi list, I am calling a method on a COM server within a python script. The method takes a long time to return ( > 15s) and I am getting a "Server Busy" popup message "This action cannot be completed because the program is busy." To continue the user has to click ( "Switch to..." or "Retry"). Ty

Re: [python-win32] Manipulating MAPI

2008-01-29 Thread Mike Driscoll
Tim, > -Original Message- > From: Tim Golden [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 29, 2008 3:54 AM > To: Mike Driscoll > Cc: python-win32@python.org > Subject: Re: [python-win32] Manipulating MAPI > > Mike Driscoll wrote: > > Our organization has been slowly migrating away

Re: [python-win32] Python ADO and Date Time Field in Access

2008-01-29 Thread Tim Golden
leegold wrote: > ...snip... > I was coming from the equivalent Perl code and now trying > it in Python. [... snip code examples ...] Well, seeing you've gone to the trouble of posting the code... even if you didn't provide a working database for those of use without access to Access (pun entir

Re: [python-win32] Manipulating MAPI

2008-01-29 Thread Tim Golden
Mike Driscoll wrote: > Our organization has been slowly migrating away from closed source > software. ... Now we use a web client instead of Outlook (in most cases) to > check out email. > > Unfortunately, we discovered that there a number of users who like to be > able to use MS Word to send emai

Re: [python-win32] Embedding/bundling Python, best practices?

2008-01-29 Thread Mark Hammond
There is no single such document I'm aware of. Each version of Python has exactly one official MSVC version, details of which can be found in Python's PCBuild\readme.txt file. pywin32 uses distutils, and that too only supports a single supported version - although other versions are supported in