Changeset 7834 for main/waeup.kofa/trunk/src
- Timestamp:
- 11 Mar 2012, 09:17:32 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r7833 r7834 1323 1323 self.redirect(self.url(self.context, u'@@manage')+'?tab1') 1324 1324 1325 @action(_('Cancel') )1325 @action(_('Cancel'), validator=NullValidator) 1326 1326 def cancel(self, **data): 1327 1327 self.redirect(self.url(self.context)) … … 1439 1439 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 1440 1440 1441 @action(_('Cancel') )1441 @action(_('Cancel'), validator=NullValidator) 1442 1442 def cancel(self, **data): 1443 1443 self.redirect(self.url(self.context)) -
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.