Changeset 12502 for main/ikobacustom.skeleton/trunk/src
- Timestamp:
- 20 Jan 2015, 18:09:03 (10 years ago)
- 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 28 28 from ikobacustom.skeleton.interfaces import MessageFactory as _ 29 29 from ikobacustom.skeleton.customers.interfaces import ( 30 ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess) 30 ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess, 31 ISkeletonContractOfficialUse) 31 32 32 33 … … 46 47 47 48 edit_form_fields_interface = ISkeletonContractEdit 49 50 ou_form_fields_interface = ISkeletonContractOfficialUse 48 51 49 52 check_docs_interface = ISkeletonContract -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/export.py
r12298 r12502 22 22 CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase) 23 23 from ikobacustom.skeleton.customers.interfaces import ( 24 ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContract )24 ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContractProcess) 25 25 from ikobacustom.skeleton.interfaces import MessageFactory as _ 26 26 … … 45 45 """ 46 46 grok.name('skeletoncontracts') 47 iface = ISkeletonContract 47 iface = ISkeletonContractProcess 48 48 title = _(u'Skeleton Customer Contracts') 49 49 class_name = 'SkeletonContract' -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/interfaces.py
r12489 r12502 18 18 19 19 from zope import schema 20 from waeup.ikoba.interfaces import IIkobaObject 20 21 from waeup.ikoba.customers.interfaces import ( 21 22 ICustomer, ICustomerDocument, IContract) … … 52 53 ) 53 54 54 class ISkeletonContractProcess(ISkeletonContract): 55 class 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 65 class ISkeletonContractProcess(ISkeletonContract, ISkeletonContractOfficialUse): 55 66 """Interface for processing contract data. 56 67 """ -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py
r12389 r12502 164 164 result = open(self.outfile, 'rb').read() 165 165 self.assertMatches(result, 166 'class_name,co ntract_category,contract_id,document_object,'166 'class_name,comment,contract_category,contract_id,document_object,' 167 167 'history,last_product_id,product_object,product_options,' 168 168 'state,tc_dict,title,user_id\r\n' 169 'SkeletonContract, sample,%s,,'169 'SkeletonContract,,sample,%s,,' 170 170 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 171 171 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
Note: See TracChangeset for help on using the changeset viewer.