Changeset 12529 for main/ikobacustom.pcn
- Timestamp:
- 31 Jan 2015, 08:14:16 (10 years ago)
- 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 19 19 from zope.component import getUtility 20 20 from waeup.ikoba.interfaces import IIkobaUtils 21 from waeup.ikoba.customers.browser import PDFContractSlipPage 21 from waeup.ikoba.customers.browser import ( 22 PDFContractSlipPage, CustomerBaseEditFormPage) 22 23 from ikobacustom.pcn.interfaces import MessageFactory as _ 23 24 … … 30 31 portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE 31 32 return self.context.title 33 34 35 class 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 220 220 result = open(self.outfile, 'rb').read() 221 221 self.assertMatches(result, 222 'categor y_practice,class_name,comment,contract_category,contract_id,'222 'categories_practice,class_name,comment,contract_category,contract_id,' 223 223 'date_of_birth,history,last_product_id,lga,product_object,' 224 224 'product_options,res_address,state,state_of_origin,superintendent,' 225 225 'tc_dict,title,user_id,work_address,work_email,work_phone,' 226 226 'year_qualification\r\n' 227 ' ,RONContract,,ron,%s,,'227 '[],RONContract,,ron,%s,,' 228 228 '[u\'2015-01-18 16:40:01 WAT - Contract created by system\'],,,,' 229 229 '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n' … … 279 279 result = open(self.outfile, 'rb').read() 280 280 self.assertMatches(result, 281 'categor y_practice,class_name,contract_category,contract_id,'281 'categories_practice,class_name,contract_category,contract_id,' 282 282 'date_of_qualification,history,inspected,last_license_number,' 283 283 'last_product_id,official_in_state,other_directors,' … … 286 286 'state,superintendent,tc_dict,title,user_id,work_address\r\n' 287 287 288 ' ,ROPContract,rop,%s,,'288 '[],ROPContract,rop,%s,,' 289 289 '[u\'2015-01-20 18:51:03 WAT - Contract created by system\']' 290 290 ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,\r\n' -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/utils.py
r12499 r12529 24 24 STARTED, CREATED, REQUESTED, APPROVED, 25 25 SUBMITTED, VERIFIED, REJECTED, 26 EXPIRED )26 EXPIRED, PROVISIONALLY) 27 27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 28 … … 35 35 CUSTOMER_ID_PREFIX = u'K' 36 36 37 DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, )37 DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, PROVISIONALLY) 38 38 39 39 DOCMANAGE_DOCUMENT_STATES = (CREATED,)
Note: See TracChangeset for help on using the changeset viewer.