Changeset 12912 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 8 May 2015, 07:03:44 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.py
r10655 r12912 150 150 """ 151 151 grok.context(IUsersContainer) 152 title = _(u' Portal Users')152 title = _(u'Officers') 153 153 parent_viewname = 'administration' 154 154 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.txt
r7811 r12912 92 92 >>> blist3 = getBreadcrumbListForView(page) 93 93 >>> [x.title for x in blist3] 94 [u'Home', u'Administration', u' Portal Users']94 [u'Home', u'Administration', u'Officers'] 95 95 96 96 ..note:: This works only for views created with grokcore.component … … 112 112 >>> mybccontainer = IBreadcrumbContainer(page) 113 113 >>> [x.title for x in mybccontainer] 114 [u'Home', u'Administration', u' Portal Users']114 [u'Home', u'Administration', u'Officers'] 115 115 116 116 It is, however, not a real Python list but only an iterable -
main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt
r11794 r12912 2 2 ************* 3 3 4 Here we visit allparts of a Kofa portal using a browser.4 Here we visit parts of a Kofa portal using a browser. 5 5 6 6 University … … 39 39 40 40 We can change to German:: 41 41 42 >>> browser.getLink('de').click() 42 43 >>> print browser.contents … … 47 48 And then change back to English by clicking on the third link containing 'en' 48 49 behind 'Anfragen' and 'Einloggen':: 50 49 51 >>> browser.getLink('en', index=2).click() 50 52 >>> print browser.contents … … 165 167 166 168 167 Portal Users168 ======== ====169 Officers 170 ======== 169 171 170 172 >>> browser.open('http://localhost/myuniversity') 171 >>> browser.getLink(' Portal Users').click()172 >>> print browser.contents 173 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 174 ... Portal Users...175 ... 176 177 We can add users:173 >>> browser.getLink('Officers').click() 174 >>> print browser.contents 175 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 176 ...Officers... 177 ... 178 179 We can add officers: 178 180 179 181 >>> browser.getLink("Add user").click() … … 213 215 ... 214 216 215 Users can't be added twice:217 Officers can't be added twice: 216 218 217 219 >>> browser.open('http://localhost/myuniversity/users/add') … … 228 230 True 229 231 230 Users can be deleted:232 Officers can be deleted: 231 233 232 234 >>> browser.open('http://localhost/myuniversity/users') … … 366 368 ... 367 369 368 On the portal userpage the new local role is displayed:369 370 >>> browser.getLink(" Portal Users").click()370 On the officers page the new local role is displayed: 371 372 >>> browser.getLink("Officers").click() 371 373 >>> print browser.contents 372 374 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... … … 583 585 instances. 584 586 585 To ease the life of users we do not require to browse the587 To ease the life of officers we do not require to browse the 586 588 coursescontainers (which have a rather flat user interface), but 587 589 provide adding of courses in department views. … … 735 737 On the portal user page the new local role is displayed: 736 738 737 >>> browser.getLink(" Portal Users").click()739 >>> browser.getLink("Officers").click() 738 740 >>> print browser.contents 739 741 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... … … 826 828 :class:`waeup.kofa.university.department.Department` instances. 827 829 828 To ease the life of users we do not require to browse the830 To ease the life of officers we do not require to browse the 829 831 certificatescontainers (which have in fact no user interface), but 830 832 provide adding of certificates in department views. -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r12910 r12912 532 532 grok.context(IUsersContainer) 533 533 grok.name('index') 534 label = _(' Portal Users')534 label = _('Officers') 535 535 manage_button = _(u'Manage') 536 536 delete_button = _(u'Remove') … … 2379 2379 result.reg_number == identifier: 2380 2380 return result 2381 # Search portal user2381 # Search officer 2382 2382 user = grok.getSite()['users'].get(identifier, None) 2383 2383 if user is not None and user.email == email: -
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r12900 r12912 329 329 330 330 link = u'users' 331 text = _(u' Portal Users')331 text = _(u'Officers') 332 332 333 333 class ManageDataCenter(ManageLink): … … 756 756 grok.require('waeup.manageUsers') 757 757 758 link_title = _(' Portal Users')758 link_title = _('Officers') 759 759 target_viewname = 'users' 760 760
Note: See TracChangeset for help on using the changeset viewer.