Changeset 12273
- Timestamp:
- 21 Dec 2014, 06:43:59 (10 years ago)
- Location:
- main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/interfaces.py
r12272 r12273 20 20 from waeup.ikoba.customers.interfaces import ( 21 21 ICustomer, ICustomerDocument, IContract) 22 from waeup.ikoba.customers.vocabularies import CustomerDocumentSource 22 from waeup.ikoba.customers.vocabularies import ( 23 contextual_reg_num_source, GenderSource, nats_vocab, 24 ConCatProductSource, CustomerDocumentSource) 23 25 from ikobacustom.skeleton.interfaces import MessageFactory as _ 24 26 … … 49 51 required = False, 50 52 ) 53 54 class ISkeletonContractEdit(ISkeletonContract): 55 """Interface for editing sample contract data by customers. 56 57 """ 58 59 product_object = schema.Choice( 60 title = _(u'Product'), 61 source = ConCatProductSource(), 62 required = True, 63 ) 64 65 document_object = schema.Choice( 66 title = _(u'Document'), 67 source = CustomerDocumentSource(), 68 required = True, 69 ) -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_customer.py
r12272 r12273 60 60 def test_addSkeletonCustomer(self): 61 61 customer = createObject(u'waeup.Customer') 62 verify.verifyObject(ISkeletonCustomer, customer) 62 63 self.app['customers'].addCustomer(customer) 63 64 self.assertEqual(customer.customer_id, 'K1000000')
Note: See TracChangeset for help on using the changeset viewer.