On 5 February 2011 17:27, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Martin Aspeli wrote:
>> Hi,
>>
>> On 5 February 2011 16:45, Andreas Jung <li...@zopyx.com> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hi there,
>>>
>>> I am trying to use plone.app.testing under Plone 4 for a decent AT-based
>>> content-type. How plone.app.testing is failing badly with the following
>>> setupPloneSite() call. Obviously there is some issue with the setRoles()
>>> call. The signature of setRoles() excepts a userfolder objects and not a
>>> portal object (documentation error?). Passing in portal.acl_users also
>>> does not help since the code will fail afterwards with a different error.
>>
>> If you're using Plone, try to use
>>
>> from plone.app.testing import setRoles
>>
>> setRoles(portal, userId, roles)
>>
>> This definitely takes the portal as an argument. (see
>> http://pypi.python.org/pypi/plone.app.testing).
>
> Appearently Google gave me the docs of an older plone.app.testing
> release really using z2.setRoles(). The current docs is correct.

Does that mean we should close the defect you raised in trac?

Martin
_______________________________________________
Product-Developers mailing list
Product-Developers@lists.plone.org
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to