Ignore:
Timestamp:
2 Mar 2015, 00:43:18 (10 years ago)
Author:
uli
Message:

Make amount a simple attribute to stop attrs_to_fields overwriting the attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/interfaces.py

    r12642 r12645  
    2222from zope.container.interfaces import IContainer
    2323from zope.container.constraints import contains
    24 from zope.interface import Interface
     24from zope.interface import Interface, Attribute
    2525from waeup.ikoba.interfaces import (
    2626    IIkobaObject, SimpleIkobaVocabulary, ContextualDictSourceFactoryBase)
     
    8888        )
    8989
    90     def create_payment(payer, payment_item,  payee):
     90    def create_payment(payer, payment_item_list,  payee):
    9191        """Create a payment.
    9292
     
    229229        )
    230230
    231     amount = schema.Decimal(
    232         title=_(u'Amount'),
    233         description=_(
    234             'The overall sum payed, including all taxes fees, etc.'),
    235         default=decimal.Decimal("0.00"),
    236         required=True,
    237         readonly=False,
    238         )
     231    amount = Attribute("Sum of amounts of items contained")
    239232
    240233    def approve():
Note: See TracChangeset for help on using the changeset viewer.