Changeset 8757
- Timestamp:
- 19 Jun 2012, 07:28:08 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/authentication.py
r8756 r8757 77 77 78 78 A Kofa principal info is created with id, login, title, description, 79 phone, email and user_type.79 phone, email, public_name and user_type. 80 80 """ 81 81 grok.implements(IKofaPrincipalInfo) 82 82 83 def __init__(self, id, title, description, email, phone, user_type):83 def __init__(self, id, title, description, email, phone, public_name, user_type): 84 84 self.id = id 85 85 self.title = title … … 87 87 self.email = email 88 88 self.phone = phone 89 self.public_name = public_name 89 90 self.user_type = user_type 90 91 self.credentialsPlugin = None … … 94 95 """A portal principal. 95 96 96 Kofa principals provide an extra `email`, `phone` and `user_type`97 Kofa principals provide an extra `email`, `phone`, `public_name` and `user_type` 97 98 attribute extending ordinary principals. 98 99 """ … … 101 102 102 103 def __init__(self, id, title=u'', description=u'', email=u'', 103 phone=None, user_type=u'', prefix=None):104 phone=None, public_name=u'', user_type=u'', prefix=None): 104 105 self.id = id 105 106 if prefix is not None: … … 110 111 self.email = email 111 112 self.phone = phone 113 self.public_name = public_name 112 114 self.user_type = user_type 113 115 … … 137 139 self.info.email, 138 140 self.info.phone, 141 self.info.public_name, 139 142 self.info.user_type, 140 143 authentication.prefix, … … 237 240 email=account.email, 238 241 phone=account.phone, 242 public_name=account.public_name, 239 243 user_type=u'user') 240 244 … … 249 253 email=account.email, 250 254 phone=account.phone, 255 public_name=account.public_name, 251 256 user_type=u'user') 252 257 -
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r8756 r8757 392 392 email = Attribute("The email address of a user") 393 393 phone = Attribute("The phone number of a user") 394 public_name = Attribute("The public name of a user") 394 395 395 396 … … 410 411 description = u'', 411 412 required=False,) 413 414 public_name = schema.TextLine( 415 title = _(u'Public Name'), 416 required = False,) 412 417 413 418 class IUserAccount(IKofaObject): -
main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
r8756 r8757 140 140 email=account.email, 141 141 phone=account.phone, 142 public_name=account.public_name, 142 143 user_type=account.user_type) 143 144 -
main/waeup.kofa/trunk/src/waeup/kofa/userscontainer.py
r8739 r8757 33 33 34 34 def addUser(self, name, password, title=None, 35 description=None, email=None, phone=None, roles=[]): 35 description=None, email=None, phone=None, 36 public_name= None, roles=[]): 36 37 """Add a new Account instance, created from parameters. 37 38 """ … … 41 42 # description = title 42 43 self[name] = Account(name=name, password=password, title=title, 43 description=description, 44 description=description, public_name=public_name, 44 45 email=email, phone=phone, roles=roles) 45 46 #self.logger.info('User account %s added.' % name)
Note: See TracChangeset for help on using the changeset viewer.