Changeset 11874
- Timestamp:
- 23 Oct 2014, 07:24:39 (10 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r11869 r11874 4 4 1.3dev (unreleased) 5 5 =================== 6 7 * Hide 'Create students' button. Only user admin can see this button. 6 8 7 9 * Add application_slip_notice field to ApplicantsContainer. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r11870 r11874 584 584 class CreateAllStudentsPage(UtilityView, grok.View): 585 585 """Create all student objects from applicant data 586 in a container.586 in the root container or in a specific applicants container only. 587 587 588 588 Only PortalManagers can do this. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py
r11599 r11874 158 158 target ='createallstudents' 159 159 160 @property 161 def target_url(self): 162 if self.target and self.request.principal.id == 'admin': 163 return self.view.url(self.view.context, self.target) 164 return 165 160 166 class ApplicantsContainerCreateStudentsActionButton(ManageActionButton): 161 167 grok.order(1) … … 166 172 text = _('Create students') 167 173 target ='createallstudents' 174 175 @property 176 def target_url(self): 177 if self.target and self.request.principal.id == 'admin': 178 return self.view.url(self.view.context, self.target) 179 return 168 180 169 181 class ApplicantViewActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.