things go wrong when removing an account that has recurring transactions

Bug #1269897 reported by Michael Rooney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wxBanker
Triaged
Medium
Unassigned

Bug Description

From Lukas via email: "I guess this is not the good way to ask about a possible bug in
wxBanker. However, I'm not registered at Launchpad, nor do I have any
experience with bug tracking and I probably won't be occupied much with
technical details of Launchpad projects - I hope you forgive this
approach of mine...

Now, that's the problem: The removal of accounts with linked
transactions work fine, but things go wrong when removing an account
that has recurring transactions, they somehow don't seem to be handled
in the right manner (shouldn't they be deleted??). I'm not attaching any
stacktrace, it seems pointless to me because the problem should be
easily reproducable.

I am running "whoops-release" 0.9.1 on Linux mint."

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
    self.notify()
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 750, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 423, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 261, in sendMessage
    listener(message)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 474, in onAccountChanged
    self.SelectItemByAccount(account)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 257, in SelectItemByAccount
    return self.SelectItemById(account.ID)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 249, in SelectItemById
    self.SelectItem(i)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 239, in SelectItem
    Publisher.sendMessage("view.account changed", account)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 750, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 423, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/pubsub/pubsub1/pub.py", line 261, in sendMessage
    listener(message)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/newtransactionctrl.py", line 341, in onAccountChanged
    if account and not account.Transactions:
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/bankobjects/account.py", line 125, in GetTransactions
    self._Transactions = self.Store.getTransactionsFrom(self)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/persistentstore.py", line 436, in getTransactionsFrom
    t = self.result2transaction(result, account, recurringCache=recurringCache)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/persistentstore.py", line 408, in result2transaction
    t.RecurringParent = recurringCache[recurringId]
KeyError: 1

Michael Rooney (mrooney)
description: updated
Michael Rooney (mrooney)
Changed in wxbanker:
milestone: none → 0.9.2
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.