Ignore:
Timestamp:
18 Mar 2015, 11:27:56 (10 years ago)
Author:
uli
Message:

Define payment_items more precisely.

File:
1 edited

Legend:

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

    r12779 r12786  
    358358        )
    359359
    360     payment_items = Attribute("Tuple of payment items")
     360    payment_items = schema.Tuple(
     361        title=u'Tuple of IPaymentItems.',
     362        value_type=schema.Object(
     363            title=u'Payment Item',
     364            schema=IPaymentItem,
     365            ),
     366        required=True,
     367        default=(),
     368        readonly=False,
     369        )
    361370
    362371    amount = Attribute("Sum of amounts of items contained")
Note: See TracChangeset for help on using the changeset viewer.