Changeset 12919 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 9 May 2015, 17:15:03 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt
r12912 r12919 179 179 We can add officers: 180 180 181 >>> browser.getLink("Add user").click()181 >>> browser.getLink("Add officer").click() 182 182 >>> browser.getControl(name="form.name").value = 'bob' 183 183 >>> browser.getControl(name="form.title").value = 'Bob The User' … … 188 188 >>> browser.getControl(name="form.phone.area").value = '123' 189 189 >>> browser.getControl(name="form.phone.ext").value = '45678' 190 >>> browser.getControl("Add user").click()190 >>> browser.getControl("Add officer").click() 191 191 >>> print browser.contents 192 192 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... … … 226 226 >>> browser.getControl(name="form.phone.area").value = '123' 227 227 >>> browser.getControl(name="form.phone.ext").value = '45678' 228 >>> browser.getControl("Add user").click()228 >>> browser.getControl("Add officer").click() 229 229 >>> 'The userid chosen already exists' in browser.contents 230 230 True -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r12912 r12919 535 535 manage_button = _(u'Manage') 536 536 delete_button = _(u'Remove') 537 doclink = DOCLINK + '/users.html#officers' 537 538 538 539 def update(self, userid=None, adduser=None, manage=None, delete=None): … … 578 579 grok.template('usereditformpage') 579 580 form_fields = grok.AutoFields(IUserAccount) 580 label = _('Add user')581 582 @action(_('Add user'), style='primary')581 label = _('Add officer') 582 583 @action(_('Add officer'), style='primary') 583 584 def addUser(self, **data): 584 585 name = data['name'] -
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r12912 r12919 592 592 grok.context(IUsersContainer) 593 593 grok.view(UsersContainerPage) 594 text = _('Add user')594 text = _('Add officer') 595 595 596 596 class BrowseDatacenterLogs(ActionButton):
Note: See TracChangeset for help on using the changeset viewer.