bugBo-Keep - Bugs: bug #33686, Error when switching to a second...

 
 

bug #33686: Error when switching to a second trustor

Submitted by:  -Deleted Account- <samuelpauls>
Submitted on:  Fri 01 Jul 2011 02:19:28 AM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: -Deleted Account- <samuelpauls>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 05 Jul 2011 08:38:49 PM UTC, comment #1:

del_transaction is called twice and the error shows itself on the second call. Perhaps del_transaction should only be called once when switching the trustor's name?

-Deleted Account- <samuelpauls>In charge of this item.
Fri 01 Jul 2011 02:19:28 AM UTC, original submission:

To reproduce:

1. Start with a clean BoKeep transaction database.
2. Create a new Trust Money In transaction.
2. Add two trustors to the trust plugin.
2. Create a new Trust Money In transaction.
3. Switch to the second trustor in the drop down list.

The following error results:

Traceback (most recent call last):
File "/home/samuel/BoKeep/bokeep/src/bokeep/plugins/trust/GUIs/entry/trustor_entry.py", line 135, in on_trustor_combo_changed
self.update_trans()
File "/home/samuel/BoKeep/bokeep/src/bokeep/plugins/trust/GUIs/entry/trustor_entry.py", line 126, in update_trans
self.trust_module.associate_transaction_with_trustor(self.trans_id, self.trust_trans, trustor.name)
File "/home/samuel/BoKeep/bokeep/src/bokeep/plugins/trust/module.py", line 188, in associate_transaction_with_trustor
self.disassociate_trustor_with_transaction(front_end_id, trust_trans, trust_trans.get_trustor().name)
File "/home/samuel/BoKeep/bokeep/src/bokeep/plugins/trust/module.py", line 204, in disassociate_trustor_with_transaction
trustor.del_transaction(trust_trans)
File "/home/samuel/BoKeep/bokeep/src/bokeep/plugins/trust/module.py", line 76, in del_transaction
self.transactions.remove(trust_trans)
ValueError: list.remove(x): x not in list

-Deleted Account- <samuelpauls>In charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by samuelpauls (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Jul 2011 10:23:15 PM UTCsamuelpaulsStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 05 Jul 2011 08:38:49 PM UTCsamuelpaulsStatusConfirmed=>In Progress
      Assigned tomarkjenkins=>samuelpauls

    Back to the top


    Powered by Savane 3.1-cleanup1