Browse files

make users and groups folderish

  • Loading branch information...
1 parent b61184c commit db5a3aea388bbd989eedf9069be3b496393b9072 @mcdonc mcdonc committed Apr 7, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 substanced/principal/__init__.py
View
6 substanced/principal/__init__.py
@@ -102,12 +102,13 @@ class GroupSchema(Schema):
)
@content(IGroup, IPrincipalContent)
-class Group(Persistent):
+class Group(Folder):
description = ''
__propschema__ = GroupSchema()
def __init__(self, description):
+ Folder.__init__(self)
self.description = description
self.members = IFTreeSet()
@@ -208,12 +209,13 @@ class UserSchema(Schema):
NO_CHANGE = u'\ufffd' * 8
@content(IUser, IPrincipalContent)
-class User(Persistent):
+class User(Folder):
__propschema__ = UserSchema()
def __init__(self, password, email=None, security_question=None,
security_answer=None, groups=()):
+ Folder.__init__(self)
self.password = pwd_manager.encode(password)
self.email = email
self.security_question = security_question

0 comments on commit db5a3ae

Please sign in to comment.