Changeset 12490 for main/waeup.ikoba/trunk/src
- Timestamp:
- 19 Jan 2015, 06:50:16 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12486 r12490 1532 1532 def label(self): 1533 1533 portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE 1534 return '%s of %s\nTitle: %s' % ( 1535 self.context.translated_class_name, 1536 self.context.customer.display_fullname, 1537 self.context.title) 1534 return self.context.title 1538 1535 1539 1536 def render(self): -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12432 r12490 370 370 # Insert customer data table 371 371 if customer is not None: 372 bd_translation = trans(_('Base Data'), portal_language)373 data.append(Paragraph(bd_translation, HEADING_STYLE))372 #bd_translation = trans(_('Customer'), portal_language) 373 #data.append(Paragraph(bd_translation, HEADING_STYLE)) 374 374 data.append(render_customer_data( 375 375 customerview, view.context, omit_fields, lang=portal_language, … … 378 378 # Insert widgets 379 379 if view.form_fields: 380 data.append(Paragraph(view.title, HEADING_STYLE)) 380 data_header = trans(_('${a} Data', 381 mapping = {'a':view.context.translated_class_name}), 382 portal_language) 383 data.append(Paragraph(data_header, HEADING_STYLE)) 381 384 separators = getattr(self, 'SEPARATORS_DICT', {}) 382 385 table = creator.getWidgetsTable( … … 392 395 if show_history: 393 396 if getattr(view.context, 'history', None): 394 hist_translation = trans(_('${a} Workflow History', 395 mapping = {'a':view.context.translated_class_name}), 396 portal_language) 397 hist_translation = trans(_('Transaction History'), 398 portal_language) 397 399 data.append(Paragraph(hist_translation, HEADING_STYLE)) 398 data.extend(creator.fromStringList(view.context.history.messages)) 400 data.extend( 401 creator.fromStringList(view.context.history.messages)) 399 402 else: 400 hist_translation = trans(_('Customer Workflow History'), portal_language) 403 hist_translation = trans(_('Registration History'), 404 portal_language) 401 405 data.append(Paragraph(hist_translation, HEADING_STYLE)) 402 406 data.extend(creator.fromStringList(customer.history.messages)) -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_batching.py
r12487 r12490 59 59 layer = FunctionalLayer 60 60 61 _contract_category = u'license'62 63 61 def setUp(self): 64 62 super(ProductImportExportSetup, self).setUp() … … 85 83 product = Product() 86 84 product.product_id = u'LIC' 87 product.contract_category = self._contract_category85 product.contract_category = u'license' 88 86 options = ProductOption() 89 87 options.title = u'Base Fee'
Note: See TracChangeset for help on using the changeset viewer.