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

[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! -- Michael F. Marc

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

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

2007-05-16 Thread Michael March
erties for the tag.\n\nExpected result:\n\n\nActual Result:\nIMG tags have no these attributes on all HTML pages of the Mercury Tours site.' >>> mybug.SetField("BG_DESCRIPTION", "123") >>> mybug.Field("BG_DESCRIPTION") u'123' >>&

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

2007-05-16 Thread Michael March
[resend - I think the mailing list ate my last post..] See comments below... On 5/16/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > I'm hoping that Mark Hammond will catch sight > > of this thread and chip in. I'm guessing that > > you're seeing some odd interaction between > > the generated cla

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

2007-05-16 Thread Michael March
See below.. On 5/16/07, Tim Golden <[EMAIL PROTECTED]> wrote: > I'm hoping that Mark Hammond will catch sight > of this thread and chip in. I'm guessing that > you're seeing some odd interaction between > the generated class/module and the COM object > properties. There's a sort of funniness where

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("

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

2007-05-15 Thread Michael March
_11-43-36\nSte p: Forms\n\nDescription:\nCheck the forms on the page:\n- Input fields\n - Lists\n- Radio buttons\n- Checkboxes\n\nExpected result:\n1. The input fields should be left aligned.\n2.' >>> mybug.Field("BG_DESCRIPTION").Value = "123" Tr

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

2007-05-15 Thread Michael March
hted. If you do: print Bug1.Field ..you get the current value of the field. On 5/15/07, Tim Golden <[EMAIL PROTECTED]> wrote: > Michael March wrote: > > When you do: > > > > object.Field("UserDefined_01") > > > > ... the output is a unicode obje

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(&

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: > > > >o

[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! -- Michael F. March - mmarch at gmail dot com ___ Python-win32 mailing list Python-win

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

2007-04-04 Thread Michael March
r of lines 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 > corr

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

2007-04-03 Thread Michael March
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/3/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > # This CoClass is known by the name 'TDClient80.AmarillusHash.1' > > > > Is that my golden ticket? > > You tell u

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 documenta

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

2007-04-03 Thread Michael March
32com\client\dynamic.py", line 78, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147221005, 'Invalid class string', None, None) On 4/3/07, Tim Roberts <[EMAIL PROTECTED]> wrote: > Michael March wrote:

[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 "h