projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96f8563
)
_finishConstruction a disparue sans prévenir. _contructInstance fait son boulot maint...
author
Benoît Pin
<benoit.pin@gmail.com>
Mon, 1 Nov 2010 21:55:01 +0000
(22:55 +0100)
committer
Benoît Pin
<benoit.pin@gmail.com>
Mon, 1 Nov 2010 21:55:01 +0000
(22:55 +0100)
MembershipTool.py
patch
|
blob
|
history
diff --git
a/MembershipTool.py
b/MembershipTool.py
index
29960e7
..
f68a769
100755
(executable)
--- a/
MembershipTool.py
+++ b/
MembershipTool.py
@@
-379,16
+379,15
@@
class MembershipTool( BaseTool ):
ttool = getToolByName(self, 'portal_types')
info = getattr(ttool, self.memberareaPortalType)
ttool = getToolByName(self, 'portal_types')
info = getattr(ttool, self.memberareaPortalType)
- f = info._constructInstance( members, member_id )
memberFullName = self.getMemberFullNameById(member_id, nameBefore = 0)
memberFullName = self.getMemberFullNameById(member_id, nameBefore = 0)
+ f = info._constructInstance( members, member_id, title=memberFullName )
# Grant Ownership and Owner role to Member
f.changeOwnership(user)
f.__ac_local_roles__ = None
f.manage_setLocalRoles(member_id, ['Owner'])
# Grant Ownership and Owner role to Member
f.changeOwnership(user)
f.__ac_local_roles__ = None
f.manage_setLocalRoles(member_id, ['Owner'])
- f.setTitle(memberFullName)
- info._finishConstruction(f)
+ f.reindexObjectSecurity()
# Create Member's initial content.
if hasattr(self, 'createMemberContent') :
# Create Member's initial content.
if hasattr(self, 'createMemberContent') :