Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make users and groups folderish

  • Loading branch information...
commit db5a3aea388bbd989eedf9069be3b496393b9072 1 parent b61184c
@mcdonc mcdonc authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.