Changeset 12502


Ignore:
Timestamp:
20 Jan 2015, 18:09:03 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes made in base package.

Location:
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/contracts.py

    r12335 r12502  
    2828from ikobacustom.skeleton.interfaces import MessageFactory as _
    2929from ikobacustom.skeleton.customers.interfaces import (
    30     ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess)
     30    ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess,
     31    ISkeletonContractOfficialUse)
    3132
    3233
     
    4647
    4748    edit_form_fields_interface = ISkeletonContractEdit
     49
     50    ou_form_fields_interface = ISkeletonContractOfficialUse
    4851
    4952    check_docs_interface = ISkeletonContract
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/export.py

    r12298 r12502  
    2222    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
    2323from ikobacustom.skeleton.customers.interfaces import (
    24     ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContract)
     24    ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContractProcess)
    2525from ikobacustom.skeleton.interfaces import MessageFactory as _
    2626
     
    4545    """
    4646    grok.name('skeletoncontracts')
    47     iface = ISkeletonContract
     47    iface = ISkeletonContractProcess
    4848    title = _(u'Skeleton Customer Contracts')
    4949    class_name = 'SkeletonContract'
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/interfaces.py

    r12489 r12502  
    1818
    1919from zope import schema
     20from waeup.ikoba.interfaces import IIkobaObject
    2021from waeup.ikoba.customers.interfaces import (
    2122    ICustomer, ICustomerDocument, IContract)
     
    5253        )
    5354
    54 class ISkeletonContractProcess(ISkeletonContract):
     55class ISkeletonContractOfficialUse(IIkobaObject):
     56    """Interface for editing official use data.
     57
     58    """
     59
     60    comment = schema.Text(
     61        title= _('Reason for rejection'),
     62        required = False,
     63        )
     64
     65class ISkeletonContractProcess(ISkeletonContract, ISkeletonContractOfficialUse):
    5566    """Interface for processing contract data.
    5667    """
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py

    r12389 r12502  
    164164        result = open(self.outfile, 'rb').read()
    165165        self.assertMatches(result,
    166             'class_name,contract_category,contract_id,document_object,'
     166            'class_name,comment,contract_category,contract_id,document_object,'
    167167            'history,last_product_id,product_object,product_options,'
    168168            'state,tc_dict,title,user_id\r\n'
    169             'SkeletonContract,sample,%s,,'
     169            'SkeletonContract,,sample,%s,,'
    170170            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    171171            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
Note: See TracChangeset for help on using the changeset viewer.