Changeset 12803 for main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products
- Timestamp:
- 20 Mar 2015, 18:51:29 (10 years ago)
- Location:
- main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/interfaces.py
r12371 r12803 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 from zope import schema 18 19 from waeup.ikoba.products.interfaces import IProduct 19 20 from ikobacustom.pcn.interfaces import MessageFactory as _ … … 24 25 25 26 """ 27 28 contract_year = schema.Int( 29 title=u'Year of License', 30 description=_(u'Enter 4-digit license year.'), 31 required=False, 32 min=1990, 33 max=2050, 34 ) 35 36 IPCNProduct['contract_year'].order = IPCNProduct['valid_from'].order -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/tests/test_browser.py
r12686 r12803 54 54 result = open(self.outfile, 'rb').read() 55 55 self.assertEqual(result, 56 'contract_category,contract_title, description,options,'56 'contract_category,contract_title,contract_year,description,options,' 57 57 'product_id,terms_and_conditions,title,valid_from,valid_to,' 58 58 'users_with_local_roles\r\n' 59 'ron,,, [],RON,,Unnamed,2015-12-04#,,[]\r\n')59 'ron,,,,[],RON,,Unnamed,2015-12-04#,,[]\r\n') 60 60 # We can import the same file. 61 61 processor = PCNProductProcessor() … … 74 74 result = processor.doImport( 75 75 self.outfile, 76 ['contract_category','contract_title', 'description', 'options', 77 'product_id', 'terms_and_conditions','title','valid_from','valid_to', 76 ['contract_category','contract_title','contract_year', 77 'description', 'options', 78 'product_id', 'terms_and_conditions', 79 'title','valid_from','valid_to', 78 80 'users_with_local_roles'], 79 81 mode='create') … … 84 86 result = processor.doImport( 85 87 self.outfile, 86 ['contract_category','contract_title', 'description', 'options', 87 'product_id', 'terms_and_conditions','title','valid_from','valid_to', 88 ['contract_category','contract_title', 'contract_year', 89 'description', 'options', 90 'product_id', 'terms_and_conditions', 91 'title','valid_from','valid_to', 88 92 'users_with_local_roles'], 89 93 mode='update')
Note: See TracChangeset for help on using the changeset viewer.