Re: [python-win32] Newbee question

2007-08-20 Thread Michael March
This is a python-win32 specific question? On 8/20/07, RANDALL HOWELL [EMAIL PROTECTED] wrote: I am trying to figure out how to code my stop pay. I get paid 40 cents a stop for the first 22 stops, and $1.40 for stops after that. stops = 24 if stops 22: stopPay = stops * .4 else:

[python-win32] Remedy automation via COM..

2007-08-13 Thread Michael March
I'm about to start a project at my current gig where I need to automate interaction with Remedy. I poked around the net via Google and I didn't see any recent posts anywhere on interfacing Python with it.. Is anyone out there using Python/COM to connect with Remedy? thanks! -- admiral Michael

Re: [python-win32] translating VB into Python...

2007-05-17 Thread Michael March
I just wanted to follow up and say I completed my app today. Everything worked wonderfully. Thanks to everyone. If anyone needs assistance automating Quality Center with Python, let me know. On 5/16/07, Michael March [EMAIL PROTECTED] wrote: Hurray mybug=bfact.Item(24) mybug.Field

Re: [python-win32] translating VB into Python...

2007-05-15 Thread Michael March
.' mybug.Field(BG_DESCRIPTION).Value = 123 Traceback (most recent call last): File stdin, line 1, in ? AttributeError: 'unicode' object has no attribute 'Value' On 5/15/07, Michael March [EMAIL PROTECTED] wrote: Ok.. here is the VB example .. (this is for / provided by HP's Quality Center help

Re: [python-win32] translating VB into Python...

2007-05-15 Thread Michael March
mybug.Field(BG_DESCRIPTION)= 123 SyntaxError: can't assign to function call On 5/15/07, Tim Roberts [EMAIL PROTECTED] wrote: Michael March wrote: Here is another example in context: mybug.Field(BG_DESCRIPTION) u'Test Set: Mercury Tours UI\nTest: [1]Welcome Page\nRun: Run_9-11_11-43

Re: [python-win32] translating VB into Python...

2007-05-14 Thread Michael March
Michael March wrote: I have some sample code with this: object.Field(UserDefined_01) = Open Python barfs on that.. what would be the equivalent of that in Python? Usually: object.Field(UserDefined_01).Value = Open VB has the concept of a default property for a collection

[python-win32] translating VB into Python...

2007-05-10 Thread Michael March
I have some sample code with this: object.Field(UserDefined_01) = Open Python barfs on that.. what would be the equivalent of that in Python? thanks! -- admiral Michael F. March - mmarch at gmail dot com ___ Python-win32 mailing list

Re: [python-win32] translating VB into Python...

2007-05-10 Thread Michael March
Cool.. The docs have this: Public Property Field( _ ByVal FieldName As String _ ) As Variant Can we infer the default property from this? On 5/10/07, Tim Roberts [EMAIL PROTECTED] wrote: Michael March wrote: I have some sample code with this: object.Field(UserDefined_01) = Open

Re: [python-win32] How to figure out the COM object name?

2007-04-04 Thread Michael March
the Python versions had 2/3rds the number of lines as compared to the VB versions. Again.. thanks everyone! On 4/3/07, Michael March [EMAIL PROTECTED] wrote: Arg! I typed too soon.. There were a ton of those strings in the file and one of them WAS the correct one! Thanks LAZY WEB! :) On 4

[python-win32] How to figure out the COM object name?

2007-04-03 Thread Michael March
Newbie question.. I am trying to connect to a COM object.. and I can't figure how to code it.. In Makepy the name of the COM object is: OTA COM 9.0 Type LIbrary (1.0) The DDL is: OTAClient.dll The VB samples have stuff like this.. Dim td as New TDConnection td.InitConnectionEx

Re: [python-win32] How to figure out the COM object name?

2007-04-03 Thread Michael March
# This CoClass is known by the name 'TDClient80.AmarillusHash.1' Is that my golden ticket? On 4/3/07, Mark Hammond [EMAIL PROTECTED] wrote: Newbie question.. I am trying to connect to a COM object.. and I can't figure how to code it.. You really need to consult the documentation for