Ignore:
Timestamp:
28 Nov 2011, 21:04:57 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement SIRPPrincipalInfo and SIRPPrincipal classes which provide ordinary principals with an extra email and phone attribute.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7229 r7233  
    128128  >>> browser.getControl(name="control_password").value = 'secret'
    129129  >>> browser.getControl(name="form.email").value = 'xx@yy.zz'
     130  >>> browser.getControl(name="form.phone").value = '1234'
    130131  >>> browser.getControl("Add user").click()
    131132  >>> print browser.contents
     
    162163  >>> browser.getControl(name="control_password").value = 'secret'
    163164  >>> browser.getControl(name="form.email").value = 'xx@yy.zz'
     165  >>> browser.getControl(name="form.phone").value = '1234'
    164166  >>> browser.getControl("Add user").click()
    165167  >>> 'The userid chosen already exists' in browser.contents
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7232 r7233  
    382382        title = data['title']
    383383        email = data['email']
     384        phone = data['phone']
    384385        description = data['description']
    385386        #password = data['password']
     
    396397        try:
    397398            self.context.addUser(name, password, title=title, email=email,
    398                                  description=description, roles=roles)
     399                                 phone=phone, description=description,
     400                                 roles=roles)
    399401        except KeyError:
    400402            self.status = self.flash('The userid chosen already exists '
Note: See TracChangeset for help on using the changeset viewer.