From a5c4ab288299b1cc55c84066b915a44aac989368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 22 Oct 2013 17:34:21 +0200 Subject: [PATCH] =?utf8?q?Suppression=20de=20la=20cr=C3=A9ation=20automati?= =?utf8?q?que=20de=20la=20page=20d'accueil=20=20pour=20les=20membres.=20(i?= =?utf8?q?nutile=20et=20source=20d'emmerdes)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- MembershipTool.py | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/MembershipTool.py b/MembershipTool.py index a521d57..3b3da9a 100755 --- a/MembershipTool.py +++ b/MembershipTool.py @@ -386,39 +386,6 @@ class MembershipTool( BaseTool ): f.manage_setLocalRoles(member_id, ['Owner']) f.reindexObjectSecurity() - - # Create Member's initial content. - if hasattr(self, 'createMemberContent') : - self.createMemberContent(member=user, - member_id=member_id, - member_folder=f) - else : - def _(message, context, expand=()) : - trmessage = decode(translate(message, context), context) - expand = tuple([decode(e, context) for e in expand]) - return (trmessage % expand).encode('utf-8') - - # Create Member's home page. - addDocument( f - , 'index_html' - , title = _("%s's Home", self, (memberFullName,)) - , description = _("%s's front page", self, (memberFullName,)) - , text_format = "html" - , text = self.default_member_content(memberFullName=memberFullName).encode('utf-8') - ) - - # Grant Ownership and Owner role to Member - f.index_html.changeOwnership(user) - f.index_html.__ac_local_roles__ = None - f.index_html.manage_setLocalRoles(member_id, ['Owner']) - - f.index_html._setPortalTypeName( 'Document' ) - - # Overcome an apparent catalog bug. - f.index_html.reindexObject() - wftool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IWorkflowTool') - wftool.notifyCreated( f.index_html ) - return f -- 2.20.1