Changeset 12529 for main/ikobacustom.pcn


Ignore:
Timestamp:
31 Jan 2015, 08:14:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

Location:
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/browser.py

    r12493 r12529  
    1919from zope.component import getUtility
    2020from waeup.ikoba.interfaces import IIkobaUtils
    21 from waeup.ikoba.customers.browser import PDFContractSlipPage
     21from waeup.ikoba.customers.browser import (
     22    PDFContractSlipPage, CustomerBaseEditFormPage)
    2223from ikobacustom.pcn.interfaces import MessageFactory as _
    2324
     
    3031        portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE
    3132        return self.context.title
     33
     34
     35class CustomerBaseEditFormPage(CustomerBaseEditFormPage):
     36    """ View to edit customer base data
     37    """
     38
     39    def dataNotComplete(self):
     40        """To be implemented in the customization package.
     41        """
     42        return False
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py

    r12501 r12529  
    220220        result = open(self.outfile, 'rb').read()
    221221        self.assertMatches(result,
    222             'category_practice,class_name,comment,contract_category,contract_id,'
     222            'categories_practice,class_name,comment,contract_category,contract_id,'
    223223            'date_of_birth,history,last_product_id,lga,product_object,'
    224224            'product_options,res_address,state,state_of_origin,superintendent,'
    225225            'tc_dict,title,user_id,work_address,work_email,work_phone,'
    226226            'year_qualification\r\n'
    227             ',RONContract,,ron,%s,,'
     227            '[],RONContract,,ron,%s,,'
    228228            '[u\'2015-01-18 16:40:01 WAT - Contract created by system\'],,,,'
    229229            '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n'
     
    279279        result = open(self.outfile, 'rb').read()
    280280        self.assertMatches(result,
    281             'category_practice,class_name,contract_category,contract_id,'
     281            'categories_practice,class_name,contract_category,contract_id,'
    282282            'date_of_qualification,history,inspected,last_license_number,'
    283283            'last_product_id,official_in_state,other_directors,'
     
    286286            'state,superintendent,tc_dict,title,user_id,work_address\r\n'
    287287
    288             ',ROPContract,rop,%s,,'
     288            '[],ROPContract,rop,%s,,'
    289289            '[u\'2015-01-20 18:51:03 WAT - Contract created by system\']'
    290290            ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,\r\n'
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/utils.py

    r12499 r12529  
    2424    STARTED, CREATED, REQUESTED, APPROVED,
    2525    SUBMITTED, VERIFIED, REJECTED,
    26     EXPIRED)
     26    EXPIRED, PROVISIONALLY)
    2727from ikobacustom.pcn.interfaces import MessageFactory as _
    2828
     
    3535    CUSTOMER_ID_PREFIX = u'K'
    3636
    37     DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED,)
     37    DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, PROVISIONALLY)
    3838
    3939    DOCMANAGE_DOCUMENT_STATES = (CREATED,)
Note: See TracChangeset for help on using the changeset viewer.