From efae6157ec06dbc7b7502e14f764473a234e1a3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Mon, 1 Nov 2010 22:55:01 +0100 Subject: [PATCH 1/1] =?utf8?q?=5FfinishConstruction=20a=20disparue=20sans?= =?utf8?q?=20pr=C3=A9venir.=20=5FcontructInstance=20fait=20son=20boulot=20?= =?utf8?q?maintenant.=20Il=20reste=20tout=20de=20m=C3=AAme=20=C3=A0=20r?= =?utf8?q?=C3=A9-indexer=20la=20s=C3=A9curit=C3=A9=20(fait).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- MembershipTool.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MembershipTool.py b/MembershipTool.py index 29960e7..f68a769 100755 --- a/MembershipTool.py +++ b/MembershipTool.py @@ -379,16 +379,15 @@ class MembershipTool( BaseTool ): ttool = getToolByName(self, 'portal_types') info = getattr(ttool, self.memberareaPortalType) - f = info._constructInstance( members, member_id ) 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']) - f.setTitle(memberFullName) - info._finishConstruction(f) + f.reindexObjectSecurity() # Create Member's initial content. if hasattr(self, 'createMemberContent') : -- 2.20.1