Changeset 12336 for main/waeup.ikoba/trunk/src/waeup/ikoba/products
- Timestamp:
- 29 Dec 2014, 16:12:24 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/products
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/products/interfaces.py
r12327 r12336 57 57 ) 58 58 59 contract_title = schema.TextLine( 60 title = _(u'Product Title'), 61 description = _('Product title if empty'), 62 required = False, 63 ) 64 59 65 contract_category = schema.Choice( 60 66 title = _(u'Contract Category'), -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/product.py
r12334 r12336 51 51 return cc_dict[self.contract_category] 52 52 53 @property 54 def contract_autotitle(self): 55 if self.contract_title: 56 return self.contract_title 57 return self.title 58 53 59 Product = attrs_to_fields(Product) 54 60 -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_export.py
r12315 r12336 62 62 result = open(self.outfile, 'rb').read() 63 63 self.assertTrue( 64 'contract_category,options,product_id,title,users_with_local_roles\r\n' 65 'license,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",LIC,Unnamed,' 64 'contract_category,contract_title,options,' 65 'product_id,title,users_with_local_roles\r\n' 66 'license,,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",LIC,Unnamed,' 66 67 '"[{\'user_name\': u\'john\', \'local_role\': ' 67 68 'u\'johnsrole\'}]"\r\n' … … 76 77 result = open(self.outfile, 'rb').read() 77 78 self.assertTrue( 78 'contract_category,options,product_id,title,users_with_local_roles\r\n' 79 'license,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",LIC,Unnamed,' 79 'contract_category,contract_title,options,' 80 'product_id,title,users_with_local_roles\r\n' 81 'license,,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",LIC,Unnamed,' 80 82 '"[{\'user_name\': u\'john\', \'local_role\': ' 81 83 'u\'johnsrole\'}]"\r\n'
Note: See TracChangeset for help on using the changeset viewer.