Ignore:
Timestamp:
23 Feb 2017, 16:07:54 (8 years ago)
Author:
Henrik Bettermann
Message:

In customized packages we have to add a container dependent string to reg_number if
applicants have been imported into several containers.

File:
1 edited

Legend:

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

    r14567 r14578  
    13141314        return
    13151315
     1316    @property
     1317    def _postfix(self):
     1318        """In customized packages we can add a container dependent string if
     1319        applicants have been imported into several containers.
     1320        """
     1321        return ''
     1322
    13161323    @action(_('Send login credentials to email address'), style='primary')
    13171324    def register(self, **data):
     
    13421349            lastname = data.get('lastname','')
    13431350            cat = getUtility(ICatalog, name='applicants_catalog')
     1351            searchstr = reg_number + self._postfix
    13441352            results = list(
    1345                 cat.searchResults(reg_number=(reg_number, reg_number)))
     1353                cat.searchResults(reg_number=(searchstr, searchstr)))
    13461354            if results:
    13471355                applicant = results[0]
Note: See TracChangeset for help on using the changeset viewer.