Ignore:
Timestamp:
17 Mar 2015, 18:41:43 (10 years ago)
Author:
Henrik Bettermann
Message:

Add payment_items to IPayment.

Export attributes too.

File:
1 edited

Legend:

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

    r12774 r12779  
    257257        self.amount = amount
    258258
     259    def to_string(self):
     260        """A string representation that can be used in exports.
     261
     262        Returned is a unicode string of format ``(u'<TITLE>',u'<FEE>',u'<CURR>')``.
     263        """
     264        string = u"(u'%s', u'%s', u'%s')" % (self.item_id, self.title, self.amount)
     265        string = string.replace("u'None'", "None")
     266        return string
     267
    259268
    260269@attrs_to_fields
Note: See TracChangeset for help on using the changeset viewer.