Florent Guillaume wrote:

> On 30 May 2005, at 14:48, Jean-Marc Orliaguet wrote:
>
>> I looked at the code in CPSUserFolder and started to try to implement
>> role blocking.
>>
>> However, I couldn't get much far since there are a couple of serious
>> bugs that need to be fixed first in PluggableUserFolder /
>> SimpleGroupRoles before starting working on role blocking. In the  end I
>> couldn't see if it was the role blocking code that I was writing that
>> was wrong or the existing code underneath. So the first thing to do
>> before implemented role blocking is to sanitize the code.
>
>
> Well, the first thing to do would be to write unit tests for 
> getRolesInContext and friends :)
>
> Florent


That's what I started doing :-)

but the easiest way of debugging so far is to run an default CPS
instance that it known to work in parallel with a PUF instance and
compare the debug results at some strategic places in the code.

/JM


Attachment: testRoleBlocking.py
Description: application/python

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to