ParentTxn has disappeared? But not listed as Deprecated
So I have a little script to do some transactions, and it reads existing ones for input. Has been working fine for a couple years, but broke with the latest release of Moneydance.
isParent = isinstance( txn, ParentTxn )
NameError: global name 'ParentTxn' is not defined
Since it is still documented in the API, it is not clear why it fails. Help!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Stuart Beesley ... on 01 Apr, 2023 07:31 AM
I just checked 2023.1(5006) and ParentTxn is still there and seems unchanged..
In moneybot run this:
from com.infinitekind.moneydance.model import ParentTxn
What code exactly are you running? Have you lost the import?
Email it to me and I'll check:
… ?
2 Posted by Stuart Beesley ... on 16 Apr, 2023 04:58 PM
?
3 Posted by v+ik on 16 Apr, 2023 10:11 PM
I added the import, and it is working.
Before I had from ... import *
Apparently * no longer includes ParentTxn, but used to.
And I thought I replied to this before, but it clearly didn't take. Maybe I forgot the last button. Sorry for the delay.