[Zope-CMF] A 'Portal Image' added programaticaly behaves
different than a manualy added one
Grégoire Weber
gregoire.weber@switzerland.org
Fri, 03 Aug 2001 10:02:18 +0200
> diff -u -r1.10 MembershipTool.py
> --- CMFDefault/MembershipTool.py 13 Jun 2001 18:02:14 -0000 1.10
> +++ CMFDefault/MembershipTool.py 3 Aug 2001 00:59:41 -0000
> @@ -178,6 +178,7 @@
> user = acl_users.getUser(member_id).__of__(acl_users)
> f.changeOwnership(user)
> f.manage_setLocalRoles(member_id, ['Owner'])
> + f._setPortalTypeName( 'Document' )
>
> # Create Member's home page.
> # default_member_content ought to be configurable per
Aem, are you sure you don't set the folders portal_type this way?
Shouldn't it be f.index_html._setPortalTypeName( 'Document' )
after the addDocument instanation?
Greg
_____________________________________
Grégoire Weber
mailto:gregoire.weber@switzerland.org