Changeset 8562


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

Refresh title when saving containers.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 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
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r8540 r8562  
    177177        title = _(u'Title'),
    178178        required = True,
    179         readonly = True,
     179        readonly = False,
    180180        )
    181181
Note: See TracChangeset for help on using the changeset viewer.