[Product-Developers] [GS] Creating members within an extension profile
Andreas Jung
lists at zopyx.com
Thu May 15 18:36:22 UTC 2008
--On 15. Mai 2008 17:05:51 +0200 Andreas Jung <lists at zopyx.com> wrote:
> Hi,
>
> a minor issue with an extension profile under GS:
>
> - rolemap.xml introduces two new roles A and B (both roles a created
> and are visible within the Plone users control panel)
>
> - import_steps.xml defines a set with dependency step="plone-final".
> Within the handler I create new members using addMember(...,
> roles=('Member', 'A', 'B')
>
> - when creating a new site using my extension profile then the users
> are created but only with 'Member' role assigned but neither 'A' nor
> 'B'
For the logs: the following workaround did the job:
def setupMembers(self, p):
for method in (p.portal_membership.addMember,
p.acl_users.userFolderEditUser):
method('am', 'am', ('Member', 'AudienceManager'), '')
method('pe', 'pe', ('Member', 'PowerEditor'), '')
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080515/f436020a/attachment.asc>
More information about the Product-Developers
mailing list