[CPS-devel] Little bug in CPSLDAPSetup profile.

JoseLuis de la Rosa Triviño joseluis.rosa at iavantefundacion.com
Mon Dec 4 12:33:14 CET 2006


Hello, 

 

This issue is related to the problem that Jesus Martin was dealing with.

 

They were using CPSLDAPSetup and the problem was that the home folder of the members were not created even if "Enable private area" was true.

 

The fact is that, in logged_in.py, the value of "first_time" should be "2000/01/01" so that the member area is created, but in the configuration file of the members directory in CPSLDAPSetup (members.xml) the default expression for "last_login_time" is None.

 

I think that the solution would be to use the expression:

 

python:{'homeless': False, 'last_login_time': '2000/01/01' }

 

instead of:

 

python:{'homeless': False, 'last_login_time': None}

 

in the definition profile of the members directory in CPSLDAPSetup.

 

If you agree I will create the ticket and commit the solution.

 

These are the references to the code I am talking about:

 

http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSDefault/trunk/skins/cps_default/logged_in.py#L69 

 

http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSLDAPSetup/trunk/profiles/default/directories/members.xml#L28 

 

Thank you very much.

JoseLuis de la Rosa Triviño 
Técnico de Desarrollo Software 
FUNDACIÓN IAVANTE 
joseluis.rosa at iavantefundacion.com 
Tel. 951 015 300 

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20061204/3bcac181/attachment.html



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