Changeset 10332


Ignore:
Timestamp:
21 Jun 2013, 08:25:00 (11 years ago)
Author:
Henrik Bettermann
Message:

_addLoginInformation() can be None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py

    r10330 r10332  
    177177
    178178        # append login information
    179         if self.note:
    180             note = self.note + self._addLoginInformation()
    181         else:
    182             note = self._addLoginInformation()
     179        note = None
     180        login_information = self._addLoginInformation()
     181        if not None in (self.note, login_information):
     182            note = self.note + login_information
     183        elif self.note:
     184            note = self.note
     185        elif login_information:
     186            note = login_information
    183187
    184188        return creator.create_pdf(data, None, doc_title, note=note)
Note: See TracChangeset for help on using the changeset viewer.