Changeset 12289
- Timestamp:
- 21 Dec 2014, 22:17:06 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/catalog.py
r12155 r12289 131 131 last_product_id = grok.index.Field(attribute='last_product_id') 132 132 contract_category = grok.index.Field(attribute='contract_category') 133 user_id = grok.index.Field(attribute='user_id') -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/contracts.py
r12258 r12289 117 117 return None 118 118 119 @property 120 def user_id(self): 121 if self.customer is not None: 122 return self.customer.customer_id 123 return 124 119 125 def writeLogMessage(self, view, message): 120 126 return self.__parent__.__parent__.writeLogMessage(view, message) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/interfaces.py
r12279 r12289 291 291 is_approvable = Attribute('Contract approvable by officer') 292 292 translated_class_name = Attribute('Translatable class name') 293 user_id = Attribute('Id of a user, actually the id of the customer') 293 294 294 295 contract_id = schema.TextLine( -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12279 r12289 257 257 'class_name,contract_category,contract_id,document_object,' 258 258 'history,last_product_id,' 259 'product_object,state,title \r\n'260 261 'SampleContract,sample,CON1,,[],,,, \r\n'259 'product_object,state,title,user_id\r\n' 260 261 'SampleContract,sample,CON1,,[],,,,,\r\n' 262 262 ) 263 263 return … … 273 273 'class_name,contract_category,contract_id,document_object,' 274 274 'history,last_product_id,' 275 'product_object,state,title \r\n'275 'product_object,state,title,user_id\r\n' 276 276 277 277 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 278 278 'Contract created by system\'],,' 279 'SAM,created,My Contract \r\n',279 'SAM,created,My Contract,A111111\r\n', 280 280 result 281 281 ) … … 292 292 'class_name,contract_category,contract_id,document_object,' 293 293 'history,last_product_id,' 294 'product_object,state,title \r\n'294 'product_object,state,title,user_id\r\n' 295 295 296 296 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 297 297 'Contract created by system\'],,' 298 'SAM,created,My Contract \r\n',298 'SAM,created,My Contract,A111111\r\n', 299 299 result 300 300 ) … … 311 311 'class_name,contract_category,contract_id,document_object,' 312 312 'history,last_product_id,' 313 'product_object,state,title \r\n'313 'product_object,state,title,user_id\r\n' 314 314 315 315 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 316 316 'Contract created by system\'],,' 317 'SAM,created,My Contract \r\n',318 result 319 ) 320 return 321 317 'SAM,created,My Contract,A111111\r\n', 318 result 319 ) 320 return 321
Note: See TracChangeset for help on using the changeset viewer.