From 02428633bff9f7a0255197273e2056686f7b9665 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 11 Sep 2010 15:21:53 +0000 Subject: [PATCH] redifine some attributes as schema fields for easier inspection and changing git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3993 fd906abe-77d9-0310-91a1-e0d9ade77398 --- commerce/interfaces.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/commerce/interfaces.py b/commerce/interfaces.py index 3b3312e..9639ef4 100644 --- a/commerce/interfaces.py +++ b/commerce/interfaces.py @@ -350,16 +350,21 @@ class IOrder(Interface): """ """ - orderId = Attribute(u'Order Identifier') + orderId = schema.TextLine(title=u'Order Identifier') + orderDate = schema.Date( + title=u'Order Date', + description=u'The day the order was issued.') + paymentType = schema.TextLine( + title=u'Payment Type', + description=u'The payment type to be used for the order.') + shop = Attribute(u'The shop this order belongs to.') customer = Attribute(u'The customer issuing this order.') invoiceAddress = Attribute(u'The address the invoice should be sent to.') shippingAddress = Attribute(u'The address the products should be sent to.') - paymentType = Attribute(u'The payment type to be used for the order.') netValues = Attribute(u'A collection of net total values (IValue objects)' u'of the order.') total = Attribute(u'The total gross value (Decimal) of the order.') - orderDate = Attribute(u'The day the order was issued.') orderType = Attribute(u'Some string used for identifying the type of the order.')