Ignore:
Timestamp:
30 May 2012, 12:00:39 (12 years ago)
Author:
Henrik Bettermann
Message:

Refresh title when saving containers.

File:
1 edited

Legend:

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

    r8550 r8562  
    378378        self.applyData(self.context, **data)
    379379        self.context.description_dict = self._description()
     380        # Always refresh title. So we can change titles
     381        # if APP_TYPES_DICT has been edited.
     382        appcats_dict = getUtility(IApplicantsUtils).APP_TYPES_DICT
     383        title = appcats_dict[self.context.prefix][0]
     384        self.context.title = u'%s %s/%s' % (
     385            title, self.context.year, self.context.year + 1)
    380386        self.flash(_('Form has been saved.'))
    381387        return
Note: See TracChangeset for help on using the changeset viewer.