Changeset 4125


Ignore:
Timestamp:
10 May 2009, 14:54:21 (16 years ago)
Author:
uli
Message:

Support roles for our accounts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/authentication.py

    r4109 r4125  
    7979    grok.implements(IUserAccount)
    8080   
    81     def __init__(self, name, password, title=None, description=None):
     81    def __init__(self, name, password, title=None, description=None,
     82                 roles = []):
    8283        self.name = name
    8384        if title is None:
     
    8889        self.description = description
    8990        self.setPassword(password)
     91        self.roles = roles
    9092
    9193    def setPassword(self, password):
Note: See TracChangeset for help on using the changeset viewer.