Ignore:
Timestamp:
21 Dec 2014, 06:43:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Add more customized components.

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  
    2020from waeup.ikoba.customers.interfaces import (
    2121    ICustomer, ICustomerDocument, IContract)
    22 from waeup.ikoba.customers.vocabularies import CustomerDocumentSource
     22from waeup.ikoba.customers.vocabularies import (
     23    contextual_reg_num_source, GenderSource, nats_vocab,
     24    ConCatProductSource, CustomerDocumentSource)
    2325from ikobacustom.skeleton.interfaces import MessageFactory as _
    2426
     
    4951        required = False,
    5052        )
     53
     54class 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  
    6060    def test_addSkeletonCustomer(self):
    6161        customer = createObject(u'waeup.Customer')
     62        verify.verifyObject(ISkeletonCustomer, customer)
    6263        self.app['customers'].addCustomer(customer)
    6364        self.assertEqual(customer.customer_id, 'K1000000')
Note: See TracChangeset for help on using the changeset viewer.