Ignore:
Timestamp:
18 Mar 2015, 14:08:18 (10 years ago)
Author:
uli
Message:

Provide proper repr() for PaymentItems?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/payments/payment.py

    r12788 r12790  
    258258        self.amount = amount
    259259
     260    def __repr__(self):
     261        result = "%s(item_id=%r, title=%r, amount=%r)" % (
     262            self.__class__.__name__, self.item_id, self.title, self.amount)
     263        return result
     264
    260265    def to_string(self):
    261266        """A string representation that can be used in exports.
Note: See TracChangeset for help on using the changeset viewer.