Changeset 14194 for main/waeup.ikoba/trunk/src
- Timestamp:
- 27 Sep 2016, 20:44:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12802 r14194 339 339 EXPORTER_NAMES = ('customers', 'customersampledocuments', 'samplecontracts') 340 340 341 #: A dictionary which maps widget names to headlines. The headline 342 #: is rendered in forms and on pdf slips above the respective 343 #: display or input widget. There are no separating headlines 344 #: in the base package. 345 SEPARATORS_DICT = {} 346 341 347 def getPDFCreator(self, context=None): 342 348 """Get a pdf creator suitable for `context`. … … 362 368 view.request.principal.id) 363 369 footer_text = view.label.split('\n') 370 separators = getattr(self, 'SEPARATORS_DICT', {}) 364 371 if len(footer_text) > 2: 365 372 # We can add a department in first line … … 388 395 data_header = trans(_('Contract Data'), portal_language) 389 396 data.append(Paragraph(data_header, HEADING_STYLE)) 390 separators = getattr(self, 'SEPARATORS_DICT', {})391 397 table = creator.getWidgetsTable( 392 398 view.form_fields, view.context, None, lang=portal_language, … … 407 413 data.append( 408 414 Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE)) 409 separators = getattr(self, 'SEPARATORS_DICT', {})410 415 table = creator.getWidgetsTable( 411 416 payment_form_fields, payment, None, lang=portal_language,
Note: See TracChangeset for help on using the changeset viewer.