Re: [python-win32] Recovering from AODB Exceptions, possible?

2007-02-09 Thread Mark Hammond
> So I have a function that ries to add a record: > > def EntryAdd(self, dataDict): > try: > self._DBConn.MoveFirst() > self._DBConn.AddNew() > for key, value in dataDict.items(): > self._DBConn.Fields.Item(key).Value = value >

[python-win32] Re: Recovering from AODB Exceptions, possible?

2007-02-09 Thread Roger Upole
Rex Corrovan wrote: > So I have a function that ries to add a record: > > def EntryAdd(self, dataDict): > try: > self._DBConn.MoveFirst() > self._DBConn.AddNew() > for key, value in dataDict.items(): > self._DBConn.Fields.Item(key).Va

[python-win32] Excel COM problem

2007-02-09 Thread Roger Upole
"Andrea Gavana" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > >I have a very simple python script that tries to put a rectangular > shape in a worksheet and then add some text inside that shape. The > main problem, is that as usual Excel doesn't like input strings lon

[python-win32] Recovering from AODB Exceptions, possible?

2007-02-09 Thread Rex Corrovan
So I have a function that ries to add a record: def EntryAdd(self, dataDict): try: self._DBConn.MoveFirst() self._DBConn.AddNew() for key, value in dataDict.items(): self._DBConn.Fields.Item(key).Value = value self._DBConn.Updat

Re: [python-win32] Notification of standby/hibernate

2007-02-09 Thread Tim Golden
[... re tracking suspend/hibernate operations ...] > I'm the author of a helper WMI module which I > know a number of people find useful in this area: > > http://timgolden.me.uk/python/wmi.html > > but in this case (a) I have embarrassingly little support > for extrinsic events (which this is)

[python-win32] win32com confusion: PROPERTY with arguments vs. METHOD.

2007-02-09 Thread bosch9y
We use an IVI-COM Server for an Agilent power supply. The documentation defines "Status.Register" to be a PROPERTY, but also specifies arguments to be used when calling it (apparently a rare case we haven't come across before). Init code: >>> import win32com.client >>> o=win32com.client.Dis