[CPS-devel] Re: Debugging

Olivier Grisel ogrisel at nuxeo.com
Wed Apr 12 09:18:59 CEST 2006


Damian Georgiou a écrit :
> Hi,
>  
> How do i debug CPS / Zope python scripts?
>  
> I have installed winpdb but not really sure what i need to do to debug 
> scripts running in CPS.
>  
> Is there a better option over winpdb?

I just use pdb (put lines such as "import pdb; pdb.set_trace()" in the source 
code and run zope with bin/runzope not to detach it from the shell. I also use 
the PDBDebugMode product that launches the debugger each time an exception is 
not catched.

> I am trying to solve an issue with LDAP authentication adnw ill be 
> looking at implimenting Group and Role extraction stored within LDAP. 
>  From my understand the current CPSLDAPSetup does not support Groups and 
> Roles in LDAP and requires you to maintain them in CPS.

CPSLDAPSetup does not provide any feature/code thus do not support anything. 
CPSLDAPSetup is 'just' a sample extension profile that shows how to configure 
you members directory with a Meta/Stacking/LDAPBackingDirectory architecture so 
as so use a LDAP server to store common inetOrgPerson attributes.

> (*shrug*, why 
> this option over LDAP i have no idea. When you have 3000+ employees, 
> managing groups and roles in cps is not an option, unless i am missing 
> something)

Just because when I wrote some of the profile of CPSLDAPSetup, the client I was 
working for did want to have different groups in CPS from those in the LDAP and 
thus did not want CPS to 'pollute' the LDAP structure with it's groups. + it 
make it easier to plug CPS to any existing LDAP  by not requiring it to have
groups setup.

It should be possible to change the groups dir to use is a flexible 
Meta/Stacking/LdapBacking structure as well instead of a single ZODBDirectory. I 
you get a working profile, I'll be happy to include it as another a alternative 
profile in CPSLDAPSetup.

The same still apply for Active Directory specific setup.

-- 
Olivier




More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.