Changeset 14194 for main


Ignore:
Timestamp:
27 Sep 2016, 20:44:04 (8 years ago)
Author:
Henrik Bettermann
Message:

Set SEPARATORS_DICT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12802 r14194  
    339339    EXPORTER_NAMES = ('customers', 'customersampledocuments', 'samplecontracts')
    340340
     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
    341347    def getPDFCreator(self, context=None):
    342348        """Get a pdf creator suitable for `context`.
     
    362368                              view.request.principal.id)
    363369        footer_text = view.label.split('\n')
     370        separators = getattr(self, 'SEPARATORS_DICT', {})
    364371        if len(footer_text) > 2:
    365372            # We can add a department in first line
     
    388395                data_header = trans(_('Contract Data'), portal_language)
    389396                data.append(Paragraph(data_header, HEADING_STYLE))
    390             separators = getattr(self, 'SEPARATORS_DICT', {})
    391397            table = creator.getWidgetsTable(
    392398                view.form_fields, view.context, None, lang=portal_language,
     
    407413                data.append(
    408414                    Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE))
    409                 separators = getattr(self, 'SEPARATORS_DICT', {})
    410415                table = creator.getWidgetsTable(
    411416                    payment_form_fields, payment, None, lang=portal_language,
Note: See TracChangeset for help on using the changeset viewer.