Changeset 7834 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 11 Mar 2012, 09:17:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r7833 r7834 34 34 from waeup.kofa.browser import ( 35 35 KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, 36 ContactAdminForm, KofaForm )36 ContactAdminForm, KofaForm, NullValidator) 37 37 from waeup.kofa.browser.interfaces import ICaptchaManager 38 38 from waeup.kofa.browser.breadcrumbs import Breadcrumb … … 155 155 @property 156 156 def title(self): 157 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 158 # There is no request attribute, thus we can only translate 159 # to the default (portal) language 160 return translate(self.context.level_title, 'waeup.kofa', 161 target_language=portal_language) 157 return self.context.level_title 162 158 163 159 class StudentsContainerPage(KofaPage): … … 886 882 return 887 883 888 @action(_('Cancel') )884 @action(_('Cancel'), validator=NullValidator) 889 885 def cancel(self, **data): 890 886 self.redirect(self.url(self.context))
Note: See TracChangeset for help on using the changeset viewer.