Changeset 13076 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 19 Jun 2015, 05:49:57 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r13073 r13076 72 72 grok.require('waeup.Public') 73 73 form_fields = grok.AutoFields(IApplicantsRoot) 74 label = _('Applicant Section')74 label = _('Applicants Section') 75 75 pnav = 3 76 76 … … 127 127 grok.template('applicantsrootmanagepage') 128 128 form_fields = grok.AutoFields(IApplicantsRoot) 129 label = _('Manage applicant section')129 label = _('Manage applicants section') 130 130 pnav = 3 131 131 grok.require('waeup.manageApplication') -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r13031 r13076 476 476 477 477 This reduced interface is for former students or students who are not 478 users of the portal but have to pay supplementary fees.478 student users of the portal but have to pay supplementary fees. 479 479 480 480 This interface is used in browser components only. Thus we can't add -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r13073 r13076 204 204 self.assertRaises( 205 205 LinkNotFoundError, 206 self.browser.getLink, 'Manage applicant section')206 self.browser.getLink, 'Manage applicants section') 207 207 self.assertRaises( 208 208 Unauthorized, self.browser.open, self.manage_root_path) … … 216 216 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 217 217 self.browser.open(self.root_path) 218 self.assertTrue('Manage applicant section' in self.browser.contents)218 self.assertTrue('Manage applicants section' in self.browser.contents) 219 219 # There is a manage link 220 link = self.browser.getLink('Manage applicant section')220 link = self.browser.getLink('Manage applicants section') 221 221 link.click() 222 222 self.assertEqual(self.browser.headers['Status'], '200 Ok') … … 252 252 self.browser.getControl("Save").click() 253 253 self.browser.open(self.root_path) 254 self.assertTrue('Manage applicant section' in self.browser.contents)254 self.assertTrue('Manage applicants section' in self.browser.contents) 255 255 # There is a search link 256 256 link = self.browser.getLink('Find applicants') … … 562 562 self.assertEqual(self.browser.headers['Status'], '200 Ok') 563 563 self.assertFalse('Search' in self.browser.contents) 564 self.assertFalse('Manage applicant section' in self.browser.contents)564 self.assertFalse('Manage applicants section' in self.browser.contents) 565 565 # ... and can't access the manage page 566 566 self.assertRaises( -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r13073 r13076 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """General helper functions and utilities for the applicant section.18 """General helper functions and utilities for the applicants section. 19 19 """ 20 20 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py
r13073 r13076 97 97 grok.view(ApplicantsRootPage) 98 98 grok.require('waeup.manageApplication') 99 text = _('Manage applicant section')99 text = _('Manage applicants section') 100 100 101 101 class ApplicantRegisterActionButton(ManageActionButton): -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13056 r13076 288 288 grok.template('containermanagepage') 289 289 pnav = 4 290 label = _('Manage student section')290 label = _('Manage students section') 291 291 search_button = _('Find student(s)') 292 292 remove_button = _('Remove selected') -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r13031 r13076 179 179 class IStudentNavigation(IStudentNavigationBase): 180 180 """Interface needed for navigation and logging. This interface is 181 implemented by all content classes in the student section.181 implemented by all content classes in the students section. 182 182 """ 183 183 student = Attribute('Student object of context') -
main/waeup.kofa/trunk/src/waeup/kofa/students/permissions.py
r13026 r13076 17 17 ## 18 18 """ 19 Permissions for the student section.19 Permissions for the students section. 20 20 """ 21 21 import grok 22 22 23 # Student section permissions23 # Students section permissions 24 24 25 25 class HandleStudent(grok.Permission): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13055 r13076 257 257 self.assertEqual(self.browser.headers['Status'], '200 Ok') 258 258 self.assertEqual(self.browser.url, self.container_path) 259 self.browser.getLink("Manage student section").click()259 self.browser.getLink("Manage students section").click() 260 260 self.assertEqual(self.browser.headers['Status'], '200 Ok') 261 261 self.assertEqual(self.browser.url, self.manage_container_path) -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13040 r13076 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """General helper functions and utilities for the student section.18 """General helper functions and utilities for the students section. 19 19 """ 20 20 import grok -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r12854 r13076 139 139 grok.view(StudentsContainerPage) 140 140 grok.require('waeup.manageStudent') 141 text = _('Manage student section')141 text = _('Manage students section') 142 142 143 143 class StudentsContainerAddActionButton(AddActionButton): -
main/waeup.kofa/trunk/src/waeup/kofa/students/vocabularies.py
r12836 r13076 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Vocabularies and sources for the student section.18 """Vocabularies and sources for the students section. 19 19 """ 20 20 from zope.component import getUtility, queryUtility -
main/waeup.kofa/trunk/src/waeup/kofa/university/catalog.py
r12968 r13076 57 57 class CertificateCoursesIndexes(grok.Indexes): 58 58 """This catalog is needed for automatic removal of certificate courses 59 and later for selection of course tickets in the student section.59 and later for selection of course tickets in the students section. 60 60 """ 61 61 grok.site(IUniversity)
Note: See TracChangeset for help on using the changeset viewer.